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

[REBOL] hidden semi-throw

From: rotenca::telvia::it at: 9-Dec-2001 19:34

Hi all can someone explain to me this:
>> x: make function! [[]] [error? y: make error! "" return :y] error? x
** Throw Error: Return or exit not in function ** Where: x ** Near: return :y It is like an hidden [throw] attribute which throw only errors:
>> x: make function! [[]] [error? y: make error! "" return 1] x
== 1 --- Ciao Romano