[Issue 10818] Allow parameterized enum declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 16 22:57:49 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10818



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-08-16 22:57:47 PDT ---
(In reply to comment #2)
> Are there any existing use cases that this would improve?

I don't have actual use case. I'm proposing this enhancement just for
increasing language consistency.

---

Now I'm opening a compiler PR to extend DIP42 feature.
https://github.com/D-Programming-Language/dmd/pull/2467

This is necessary to support `enum bool x(T) = initializer` syntax, and looks
to me it is very similar to N3651 in C++14.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3651.pdf

After #2467 is accepted, we would could make most of declarations parameterize
- aggregates, functions, and variable declarations.

And, at that time enum declaration would be remained just one declaration which
cannot be parameterized. That would be inconsistent.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list