[REBOL] Re: Bug or feature?
From: kpeters:otaksoft at: 28-Dec-2007 20:53
On Fri, 28 Dec 2007 21:49:10 -0700, Gregg Irwin wrote:
> Hi Kai,
> It complains with me here, so I assume you meant to use FUNC. If that's the case...it's
> undocumented behavior, but basically it ignores the unnamed param:
>>> probe send-mail: func [ addr [string!] [email!] xx [integer!]] [print xx]
> func [addr [string!] [email!] xx [integer!]][print xx]
>>> send-mail "test" 1
> -- Gregg
Hi Gregg ~
just doublechecked - it's function, doesn't complain and runs fine:
send-mail: function [ addr [string!] [email!] ]  [
either addr = ""
[ alert/title "Cannot send email to empty address" "Error" ]
[ browse join "mailto:" addr ]