Re: Local variables and COMPILE,
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Local variables and COMPILE,         

Group: comp.lang.forth · Group Profile
Author: Andrew Haley
Date: Sep 9, 2008 12:10

Elizabeth D Rather forth.com> wrote:
> Andrew Haley wrote:
>> Is it legal to use FIND on the name of a local variable to return xt
>> and then pass the xt to COMPILE, ? It doesn't seem to be forbiddedn
>> so I'm guessing this is OK.
> Where would you do this? The local exists only within the scope of the
> definition in which it's created, so you'd have to do whatever between a
> ] and [

Or an immediate word...
> and it all sounds very messy. Hard to imagine a context in which
> this would be a good idea,

Hah! I'll refer you to my not-yet-presented slides for EuroForth,
when all will become clear. :-)

Andrew.
no comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
NB question on global/local variables in functionscomp.lang.python ·