[Issue 9426] [enh] polymorphic lambda should be storeable in enum constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 20 02:15:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9426
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-06-20 19:15:06 EST ---
This would mean 'enum' variable could refer to templates... I don't think this
is a good idea, enums are for values.
Alternative:
alias foo = bar => bar * 2;
foo(10);
foo!uint(10); // probably too
This fits much better with the existing lanuage IMO.
--
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