[REBOL] Re: I hate computers!
From: lmecir:mbox:vol:cz at: 6-Jan-2003 12:21
> As was pointed out to me earlier, the use of Any-Type! seems to make a
> parameter optional. Were I to define a parameter as such: Parameter [
> String! Money! ], if I omit the parameter when called, it blows up. But
> with any-type!, it doesn't. So this was a means to have multiple
> parameters and have it optional. This would allow me to do some
> overloading, i.e. fall Foo with a String performs a different action
> than Foo with Money or Foo without a parameter.
you can use this:
f: func [parameter [string! money! unset!] [
to have an optional parameter.