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

[REBOL] Re: Combinations of things (small puzzler)

From: rotenca:telvia:it at: 21-Oct-2001 23:47

Ciao Gabriele, I am not sure you are right, when you say:
> It looks like REPEAT does something like: > > repeat: func ['word value body] [ > either series? value [ > ... > ... bind/copy body word ... > ... > ] [ > ... > ... bind body word ... > ...
It seemes to me that repeat never make a copy of body:
>> x: copy [probe i]
== [probe i]
>> repeat i [1 2 3] x
1 2 3 == 3
>> print get second x
3
>> x: copy [probe i]
== [probe i]
>> repeat i 3 x
1 2 3 == 3
>> print get second x
4 --- Ciao Romano