You can specify a return type. Just say "return to-(whatever) returnvalue"
at the end of your function.
For instance:
>> returner: make function! [][return to-integer "4"]
>> returner
== 4
>> type? returner
== integer!
Hope this helps, and I hope this is even what you meant :)
Keith
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 04, 2000 12:14 PM
Subject: [REBOL] Return types
>
> One thing that bothers me is that I can't specify a return type for
> functions in REBOL. Many people consider this to be a bad idea so I'm
> wondering what the idea behind this is.
>
> There are obviously advantages and disadvantages with this, but do the
> advantages really outweigh the disadvantages?
>
> Gisle