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

[REBOL] Re: How to check function arguments ?

From: carl:cybercraft at: 10-Jun-2002 13:39

On 09-Jun-02, Charles wrote:
> Easiest solution is like Romano said: Just use any-type! I use it > in a die rolling CGI script, where you can do: roll?2d6 > or > roll?2d6+3 > (or +-3) > I also use: > args: system/options/args
Ah - I didn't know of that solution. And I hadn't noticed that type: any is different than any-type!...
>> x: func [y][whatever] >> ? x
USAGE: X y DESCRIPTION: (undocumented) ARGUMENTS: y -- (Type: any)
>> x: func [y [any-type!]][whatever] >> ? x
USAGE: X y DESCRIPTION: (undocumented) ARGUMENTS: y -- (Type: any-type) But no need to explain the difference. It's not something I urgently need to know today. (; -- Carl Read