Library Typedefs are fundamentally broken
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 20 10:02:17 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.
We could introduce __COLUMN__ trivially now that DMD tracks
column numbers :)
More information about the Digitalmars-d
mailing list