26.06.2013 1:31, Walter Bright пишет:
http://wiki.dlang.org/DIP42

What about enhancement 7364 [1] (from [2] discussion)?

As we still have such cases:
---
static if (...)
    enum fullyQualifiedNameImplForTypes = ...;
else static if (...)
    enum fullyQualifiedNameImplForTypes = ...;
else static if (...)
    ...
---
which will look better this way:
---
static if (...)
    enum template = ...;
else static if (...)
    enum template = ...;
else ...
---

Also note current syntax is error-prone as one can easily make a typo or copy paste mistake which will lead to cryptic template errors.

[1] http://d.puremagic.com/issues/show_bug.cgi?id=7364
[2] http://forum.dlang.org/thread/jfh7po$3b$1...@digitalmars.com?page=1


--
Денис В. Шеломовский
Denis V. Shelomovskij

Reply via email to