Library Typedefs are fundamentally broken
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Fri Sep 19 04:14:05 PDT 2014
On Friday, 19 September 2014 at 04:44:07 UTC, Jakob Ovrum wrote:
> On Wednesday, 17 September 2014 at 16:32:04 UTC, Dicebot wrote:
>> On Wednesday, 17 September 2014 at 10:00:31 UTC, Jack
>> Applegame wrote:
>>> You can use module name and line number as unique tag.
>>
>> This is exactly what I would have expected as default
>> behaviour. Is anyone aware why this counter appoach was used
>> instead?
>
> It's a deceivingly bad default. See the comments in the PR that
> introduced Typedef[1].
>
> [1] https://github.com/D-Programming-Language/phobos/pull/300
Yes, this is a problem. But how is that possibly worse than
existing implementation which gives wrong results in 100% of
cases? file/line cookie approach has issues but it is best we can
get with existing language support.
More information about the Digitalmars-d
mailing list