From: Rick M. <obj...@gm...> - 2010-03-05 19:40:49
|
The only one that might be dodgy is the second one. I'm a little surprised to see the command not be terminated at the linend of the second line. But by the rules for comment parsing, they are just thrown away, as if they didn't exists, although they do function as token separators. If you apply that rule to each of your examples, the handling is consistent. Thus the first example reduces to say 'Start', 'End' The second also becomes say 'Start', 'End' but the third reduces to say 'Start', 'End' Only linends inside of a comment are removed by the parser, so there is a null clause between the two instructions. Rick On Fri, Mar 5, 2010 at 2:17 PM, James Johnson <ji...@il...> 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 > Oor...@li... > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > |