[Issue 5420] Cannot override function error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 6 19:52:57 PST 2011


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



--- Comment #4 from eatingstaples at gmail.com 2011-01-06 19:50:40 PST ---
Looking over the D2 language documentation, I still see no reason that this
should be occurring;
"All non-static non-private non-template member functions are virtual."

and 

"Private means that only members of the enclosing class can access the member,
or members and functions in the same module as the enclosing class. Private
members cannot be overridden. Private module members are equivalent to static
declarations in C programs.

Package extends private so that package members can be accessed from code in
other modules that are in the same package. This applies to the innermost
package only, if a module is in nested packages. "

Nowhere can I find that it says declaring a class private or package causes its
members to be considered the same.

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