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

[REBOL] Re: Problem with paren

From: al:bri:xtra at: 2-Feb-2003 10:35

Carl Read wrote:
> So far, so good, but when we try to append to the paren we get this... > > >> append last blk 1 > ** Script Error: tail expected series argument of type: series port > ** Where: append > ** Near: insert tail series :value > > yet, oddly, insert works... > > >> insert last blk 1 > == () > >> blk > == [(1)] > > (Is this a bug people?)
You're probably using an older version of Rebol, that aggressively evaluates paren! values. The beta versions don't do this. You can get "around" this by using a different version of append like this:
>> source append
append: func [ {Appends a value to the tail of a series and returns the series.} Series [series! port!] Value [any-type!] /Only "Appends a block value as a block." ][ either only [ insert/only tail :Series :Value ] [ insert tail :Series :Value ] :Series ] I hope that helps! Andrew Martin ICQ: 26227169 http://valley.150m.com/