On Fri, Aug 29, 2008 at 00:38, Tony Balinski <[EMAIL PROTECTED]> wrote:
> What about something like:
>
> ident = "my string"
> define ident {
> dialog("redefined symbol type for ident?")
> }
> dialog(ident)
>
> I think that this use of ident, as a local in the outer text, should
> probably be allowed (as long as its never seen in a function call
> context we have no conflict), but it means that the symbol table entry
> can only be added AFTER the lexer returns the symbol name, once we
> know how the symbol will be used. Note that ident above belongs in
> local symbols in the outer context, but in globals for the defined
> function.
Hmm, I thought about a runtime symbol lookup but only for function
names. with this we can remove this PromoteToGlobal() and open the
door for local function declarations, like:
my_function = define {
...
}
But I found a flaw in this idea, which I can't remember right now :(
Bert
>
> Tony
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop