Suggestion: Allow Multiple Inheritance and still preserver super() functionality
Mike Parker
aldacron71 at yahoo.com
Thu Mar 6 19:40:54 PST 2008
Jim Gadrow wrote:
>
> I will first state that I don't like the super() function because I don't believe the keyword 'super' very clearly identifies what is going on.
> wouldn't parent() have been more suitable?
The term 'superclass' is more common in the OOP vernacular than 'parent
class', so super() is spot on, IMO. You'll find the same used in Java
and probably some other languages.
Using 'parent()' would almost certainly cause some consternation among
some D users, since the terms 'parent' and 'child' are often used to
describe relationships in data structures. It's not uncommon to see
methods like parent() (or getParent()) to fetch a parent node in a tree.
More information about the Digitalmars-d
mailing list