This exactly how it should work. But the real problem with examples 3 
and 4 are the that they should be coded like this.

say 'Start', -- this comment ok
/* this comment acts as a semicolon */ ,
'End'

Remember that all lines that do not end with a continuation character 
will have an implied semicolon inserted by the interpreter. Your 
examples 3 and 4 have no continuation character in the second line and 
thus the interpreter thinks that is the end of the statement.

David Ashley

On 03/05/2010 01:17 PM, James Johnson wrote:
> If a comment does not start on the same line as the continuation then
> the comment
> acts like a semicolon and terminates the clause.
>
> Examples:
>
> say 'Start', /* this comment ok */
> 'End'
>
> say 'Start', /*
>   this comment ok */
> 'End'
>
> say 'Start', -- this comment ok
> /* this comment acts as a semicolon */
> 'End'
>
> say 'Start',
> /* this comment acts as a semicolon */
> 'End'
>
> Running the above produces the following:
>
> Start End
> Start End
> Start
> 'End' is not recognized as an internal or external command,
> operable program or batch file.
> Start
> 'End' is not recognized as an internal or external command,
> operable program or batch file.
>
> Is this the way it is intended to work? I did not find anything in the doc
> that states that comments can not follow a continued line or that a
> comment block
> must start on the continued line.
>
> James Johnson
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>    


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to