[Issue 10846] Allow defining functions in enum declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 18 15:09:21 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10846
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-18 15:09:20 PDT ---
Another alternative is to relax the function hijacking protection a little bit.
If function "foo" in module "a" takes a user-defined type, and function "foo"
in module "b" takes another user-defined type, where the types are structures
and have no subtyping relation to one another, then I think it's safe to allow
these two functions to overload against one another without requiring the user
to manually merge the overload set.
Wouldn't this be safe?
--
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