On Friday, 28-December-2007 at 20:42:09 Kai Peters wrote, >On Sat, 29 Dec 2007 17:34:08 +1300, Carl Read wrote:
>> It complains with me at run-time... >> >>>> send-mail: function [ addr [string!] [email!] ] [print "Huh?"] >>>> >> ** Script Error: function expected body argument of type: block ** Near:= > send-mail: function >> [addr [string!] [email!]] [print "Huh?"] >> >> Did you mean 'func and not 'function ? >> >> -- Carl Read. >> >> >>> Bug or feature not understood by me? Or denoting the same thing? >>> >>> TIA >>> Kai > >No - am using function in this case.... Yes - my fault. 'function needs another block... >> send-mail: function [ addr [string!] [email!] ] [] [print "Huh?"] >> send-mail "xx" Huh? >> probe :send-mail func [addr [string!] [email!] /local][print "Huh?"] And at its most minimal... >> test: func [[]][print "Huh?"] >> test Huh? It seems it just ignores any superfluous values... >> test: func [1.2.3][print "Huh?"] >> test Huh? As Gregg pointed out in a video a while back, functions are a dialect, and obviously one that allows for a bit of noise... -- Carl Read. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
