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

[REBOL] Re: ROUND function (like TRUNC, FLOOR, etc...)

From: al:bri:xtra at: 20-Feb-2002 19:46

Charles wrote:
> I do not believe I've come across these three in my (highly
limited)studies. Is there a decent reference to them in "REBOL For Dummies", or one of the online guides? (Preferrably a non-PDF guide.) Thanks.
>> source context
context: func [ "Defines a unique (underived) object." blk [block!] "Object variables and values." ][ make object! blk ]
>> source does
does: func [ {A shortcut to define a function that has no arguments or locals.} [catch] body [block!] "The body block of the function" ][ throw-on-error [make function! [] body] ]
>> source has
has: func [ {A shortcut to define a function that has local variables but no arguments.} locals [block!] body [block!] ][function [] locals body] Andrew Martin Re-Source... ICQ: 26227169 http://valley.150m.com/