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

[REBOL] Re: What does "loop" return?

From: valeri:mytinski:gma:il at: 5-Apr-2009 14:23

05.04.2009, =D7 10:34, Graham Chiu =CE=C1=D0=C9=D3=C1=CC(=C1):
> If you wish to create a new empty block each time, you would do this =20 > instea > d > > loop 2 [ append copy [] 3 ] > > which would be the same as > > append [ ] 3 append [ ] 3 > > Graham Chiu
Thanks for this example. Sorry, now I understood nothing. Why loop 2 [append [] 3] is equivalent to append append [] 3 3 that is some sort of "nested" expressions - result of first 'append is INSERTED as parameter for second 'append, while loop 2 [ append copy [] 3 ] is equivalent to append [ ] 3 append [ ] 3 that is some sort of "sequence" expressions - first 'append is FOLLOWED by second 'append? Why does not parameter substitution done? Valeri