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

[REBOL] Re: vargs function (or "r-expression)

From: anton::wilddsl::net::au at: 7-May-2007 16:16

Use an empty paren: f: func [a [any-type!] b [any-type!]][print [value? 'a value? 'b]]
>> f 1
true false
>> f () 1
false true I sometimes put it at the end of a script to prevent the last result spilling into the console. It's just slightly faster to type than 'halt. Anton.