[REBOL] Re: how do I get ampm format for time?
From: bobr:dprc at: 21-Jan-2001 4:10
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]
gives an error when pasted.
time-ampm: func [dt] [
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.