[Bug 128] DMD crash with static if and anonymous classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 18 13:42:34 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=128


unknown at simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unknown at simplemachines.org




------- Comment #3 from unknown at simplemachines.org  2006-05-18 15:42 -------
(In reply to comment #2)
> The documentation has been changed now, but it sill contains a minor bug:
> 
> new ()ArgumentListopt class ()ArgumentListopt SuperClassopt InterfaceClassesopt
> ClassBody
> 
> IMHO should be:
> 
> new (ArgumentListopt) class (ArgumentListopt) SuperClassopt InterfaceClassesopt
> ClassBody
> 

Actually, that's done throughout the documentation.  I think it a bit strange,
but it makes an amount of sense too.  If that should be changed, it would have
to be changed _everywhere_.

And since I seem to remember it being the way you suggest, I can only guess it
was changed on purpose.

Anyway, I bet using the : makes parsing ternaries fun, which is probably why it
doesn't use it.

-[Unknown]


-- 




More information about the Digitalmars-d-bugs mailing list