[Issue 676] These two funcs shouldn't conflict

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 14 13:18:58 PDT 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au
           Severity|normal                      |enhancement


--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-07-14 13:18:55 PDT ---
This is not a bug. There aren't two functions, just one function and a
variable.
Note that if this was allowed, you could reasonably expect a struct with static
opCall to work, as well. And then you ask why _any_ type or variable cannot
overload a function. Add properties into the mix -- it'd be a disaster.

I think this bug should be closed as invalid.

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