Library Typedefs are fundamentally broken

Jakob Ovrum via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 20 10:07:45 PDT 2014


On Saturday, 20 September 2014 at 13:49:58 UTC, Marco Leise wrote:
> 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.

https://github.com/D-Programming-Language/phobos/pull/300#issuecomment-3329507


More information about the Digitalmars-d mailing list