At 12:55 PM 1/21/01 +1200, Carl Read wrote:
>I'd cut-and-pasted Bob's function and gave it a time to see what it
>did with it, but it just gave me an error, which I thought may have
>been due to the cutting-and-pasting,


I tried to go back and paste my sample in as well and got an error.
Since I took it from a running example this made me curious.

I then discovered that the line interpreter is fussy about needing
an unclosed block on the function declaration line and my word processor
was helping out a bit too much by moving the next open block down.


time-ampm: func [dt]
   [stuff]

gives an error when pasted.

time-ampm: func [dt] [
   stuff]

does not.
I understand that this is due to the parser/linescanner presuming an 
unclosed block means more is coming and the linscanner in this instance 
does not get a hint that 'func wants another argument.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to