Library Typedefs are fundamentally broken

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 20 06:58:51 PDT 2014


Am Sat, 20 Sep 2014 06:32:38 +0000
schrieb "Vladimir Panteleev" <vladimir at thecybershadow.net>:

> On Saturday, 20 September 2014 at 04:52:58 UTC, Andrei 
> Alexandrescu wrote:
> > [snip]
> 
> Um, why not use __FILE__ / __LINE__ (as default values for 
> template parameters) as cookies?

It has this nasty imperfection that it breaks as soon as you
define two Typedefs on the same line. Which noone ever does
except maybe for an obfuscated coding scenario, but still it
raises my OCD level.

-- 
Marco



More information about the Digitalmars-d mailing list