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

[REBOL] Re: [bind] Patrick's pages ; using 'local ; using bind/copy

From: rotenca:telvia:it at: 14-May-2003 14:12

Hi Marc
> 1. I think that it would be more neat to *allways* bind, > when binding your words to a local function context, > by referring to 'local (the pseudo refinement allways present...) rather > than relying > on a specific variable. It works also for functions without parameters...
But not for function without local words:
>> x: [local] local: 10 do does[print get first bind x 'local]
10 Is interesting to observe that /local is a refinement like any others:
>> x: func [/local a][print [local a]] >> x/local 10
true 10 --- Ciao Romano