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

[REBOL] Re: object funnies

From: ingo:2b1 at: 20-Oct-2001 19:16

Hi Gabriele, Once upon a time Gabriele Santilli spoketh thus:
> Hello Ingo! > > On 20-Ott-01, you wrote: > > IH> (Having said that, I really like default to local, and I've > IH> once sent a proposal to feedback about a "reversed-logic" > IH> func:
On retrospect, I forgot to add that it would be a pain to use in a language where "variables" don't have to be declared, e.g. Rebol. < stripped some brilliant Rebol code, sorry >
> Really? :-)
I _said_ prove me wrong, din't I? anway ...
>> f: my-func[w /global do compose to-set-word][do compose [(to-set-word w) 2]] >> source f
f: my-func [w /local][do compose [(to-set-word w) 2]]
>> f "ho"
== 2
>> ho
== 2 It didn't catch 'ho, did it? ;-)
> Anyway, I don't like it this way. I find it more difficult to > remember to enumarate the global words... (I hate PHP for this...)
All in all, you're right here. kind regards, Ingo