From: Lewis, M. W. <MAT...@sa...> - 2009-02-23 13:12:42
|
> From: Derek Parnell > > I've just uploaded to the repository a version that implements multi- > line comments (using the C /* .. */ syntax). Try it out and see if it > 'fits' the language. I like the concept, though I wonder if -* *- is more euphorian, if less conventional. Probably not a good idea, since *- could be legitimate code (e.g., x*-1). And my eyes, at least, are already used to looking for /* */. As a precedent (for what it's worth), Oracle SQL also uses '--' for a single line comment, and /* */ for partial/multiple line comments. Now, on to the implementation. The following code only prints 2: /* blah */ ? 1 /* blah */ ? 2 As does: /* blah */ ? 1 /* blah */ ? 2 Is this is by design? Matt |