Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Undocumented: Index value local to FOR loop

From: lmecir:mbox:vol:cz at: 24-Mar-2004 5:37

Gregg Irwin napsal(a):
>...REBOL uses >'definitional scoping', which may seem a bit confusing at first when >used with literal arguments. > >>>fn: func ['word] [print word word: 10 print word] >>>fn hello >>> >>> >hello >10 > >>>hello >>> >>> >** Script Error: hello has no value >** Near: hello > >HTH! >
The above code doesn't explain what is going on. esterno: does [ print [indice] ] use [indice] [ indice: 25 esterno ] here you can see, that esterno doesn't use initialized local word, because it uses the uninitialized global. -L