Ambiguous comment syntax

Oliver Hoog kingboscop at nospam.gmail.com
Sat Aug 8 17:25:04 PDT 2009


Since one of D's goals is dropping the bad things from C/C++, I wonder 
why the ambiguous syntax for multi-line comments is still allowed:
---
	auto p = new int;
	*p = 10;
	auto j = 100/*p;    <- error
---
There is already the unambiguous /+...+/ syntax, so why not drop the 
/*...*/ syntax? Compatibility? Convenience? I think D should be more 
pragmatic.
What do you think?



More information about the Digitalmars-d mailing list