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

[REBOL] Re: Block as parameter

From: al:bri:xtra at: 17-Aug-2002 21:30

Phil wrote:
> The problem is that, when I pass this block as parameter, it seems that
block is changed :
>> cd %/c/Temp/
== %/c/Temp/
>> write %theTXT.txt {A test file
{ with at least twelve lines. { This is the third line... { and this is the fourth line. { Fifth line. { Sixth line. { Seventh line. { Eighth line. { Nine lines to here. { Tenth line. { Another makes eleven. { And the final makes 12. { }
>> a: read/lines %theTXT.txt
== ["A test file" "with at least twelve lines." "This is the third line. .." "and this is the fourth line." "Fifth line." "Sixth lin...
>> length? x
** Script Error: x has no value ** Near: length? x
>> length? a
== 12
>> make-this: func [the-block] [
[ print length? the-block [ ]
>> make-this a
12 Seems to be unchanged according to me. Perhaps there's a bug in other parts of your script? Or you could have altered some words used by Rebol. Andrew Martin ICQ: 26227169 http://valley.150m.com/