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

[REBOL] Re: Bug of TRY was bug of function error?

From: lmecir:mbox:vol:cz at: 24-Jul-2002 0:35

Hi Romano, <<Romano>> ...snip... The solution, for me, is to transform every "Out of range" reference to a series, when evaluated, in a tail reference.
> append b "a"
tail b works, so works append which uses tail To catch a little more errors, tail and head should trigger an error. Try this: clear head b: next "a" ;== "" join "a" b ; ->>>>>> CRASH "expand series overflow" --- Ciao Romano <</Romano>> I am not sure I understand your point. Your latest sample is equivalent to: clear head b: next "a" ;== "" insert tail copy "a" b ; ->>>>>> CRASH "expand series overflow" Interesting is, that it isn't an overflow, although the interpreter thinks it is. I can understand this result, but it signals, that the programmer didn't consider this special case. Ciao -L