The worst Phobos template (in binderoo)

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 1 08:06:44 PDT 2016


On Saturday, 1 October 2016 at 10:19:21 UTC, Dicebot wrote:
> On 09/29/2016 07:02 PM, David Nadlinger wrote:
>> [...]
>
> What are the issues with fullyQualifiedName in that context? I 
> mean other than Voldemort types of course. I'd expect `static 
> import` + `fullyQualifiedName` combo to be reasonably reliable 
> and used it a lot in the past. Do you refer to aliases with 
> changed protection attributes?

The problem is the default template parameter Flag!"unsafe",
because fqn makes it into "cast(Flag)".
Getting this right is a bit tricky.


More information about the Digitalmars-d mailing list