lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: import scope extension for left and right parameters?


From: Jeff Kingston
Subject: Re: import scope extension for left and right parameters?
Date: Wed, 17 Nov 2004 07:48:42 +1100

> I wonder why the "import" declaration works only with named definition
> parameters and not with left, right (or body, for that matter) ones.

Because Lout needs to know what symbols are in scope at the time
it reads each token of its input file, and this is not possible
with imports on left and right parameters, since their extent
is only known after they have been parsed.  (Think about it.)

You should not need an import on a body parameter because its
whole purpose is to bring into scope the exported parameters
of its object.

I would have thought Lout would have complained about an import
attached to a left or right parameter - I'm surprised it didn't.
I'll add getting a more informative error message here to my
list of things to do for the next release.

Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]