Ambiguous comment syntax

Stewart Gordon smjg_1998 at yahoo.com
Sun Aug 9 14:53:58 PDT 2009


Daniel Keep wrote:
<snip>
> It's not ambiguous.  Tokens are matched with maximal munch meaning that
> /* is ALWAYS the opening of a multi-line comment.

Actually, it isn't always maximal munch - for example, 2..3 tokenises as 
2 .. 3 rather than 2. .3.  But you're right about comment syntax.

Stewart.



More information about the Digitalmars-d mailing list