[Issue 9511] [enh] overloading on attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 14 10:21:32 PST 2013


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-02-14 10:21:30 PST ---
I don't think that it's going to work to overload on any of these attributes.
They're inferred for templated functions, which means that the functions being
used within a function must have their @safety, purety, and nothrow-ity
determined before they're determined for the function itself. So, you can't
reasonably determine an overload of nothrow, @safe, or pure based on the
caller. It has to be based on the arguments (which is _always_ how function
overloading is determined).

Rather, it would be better to make it so that overloads with the same
parameters are illegal.

-- 
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