On Saturday, 1 October 2016 at 19:54:13 UTC, Dicebot wrote:
On Saturday, 1 October 2016 at 15:06:44 UTC, Stefan Koch wrote:
The problem is the default template parameter Flag!"unsafe",
because fqn makes it into "cast(Flag)".
Getting this right is a bit tricky.

Isn't it a problem with library implementation though, one that would be easy to fix if FQN is to become a compiler built-in?

It is easier then doing it in a template for sure.
But it still requires a bit of AST-traversal.
And I fear differing from phobos could make it harder to get the PR merged. since the __trait is supposed to be a drop-in replacement for the phobos template.

Reply via email to