Skip to content
Tcl Source Code View Ticket
Login

View Ticket

superclass API naming inconsistency

Closed / Wont Fix1962026fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 18 years ago
Descriptionplain2008-05-11 19:23:03
why is it [oo::define superclass] but [info class superclasses]?
both deal with a list of classes, so why not use 'superclasses' for consistency ?
Alternatively use 'superclass' for both (like XOTcl, slightly more confusing IMO).
dkfplain2008-05-20 05:11:12
Logged In: YES 
user_id=79902
Originator: NO

DGP suggests making both "super".

I'm wondering whether to follow whatever convention itcl uses.
dkfplain2008-05-21 05:24:59
Logged In: YES 
user_id=79902
Originator: NO

Itcl uses 'inherit'. Bleah; don't like that.

Added prefix processing to oo::define, which means that 'super' can be used in both cases if people desire.
dkfplain2008-06-13 17:43:14
Logged In: YES 
user_id=79902
Originator: NO

I think I'll just not change this. Changing singular/plural isn't as bad as changing inherit vs superclass or something like that.

If it really bugs you, submit a TIP.
dasplain2008-06-13 18:53:03
Logged In: YES 
user_id=90580
Originator: YES

good enough for me that they can now both be abbreviated as 'super' 

Of course you could now also transparently change [oo::define superclass] to [oo::define superclasses], as the former is an abbreviation of the latter the published API would not need to change...
Log in (anonymous is fine) to add a comment.