class extensions
Alexander Panek
alexander.panek at brainsware.org
Thu Aug 30 00:55:05 PDT 2007
Lars Ivar Igesund wrote:
> [...]
> It will also be directly detrimental to maintainability when used for user
> defined types, as you no longer will be able to decide where a function is
> implemented by only looking at the call site (given inheritance and
> polymorphism this can in cases be difficult enough, but at least you have a
> type hierarchy to look to).
Well, usually a simple change to the import list will reveal where each
functions are defined. I wouldn't see that as an argument against this
feature.
Apart from that, in an ideal world, the code is well documented enough
to not have to determine the location of a function/method
implementation yourself, anyways. Of course, this is the *ideal*, but
maybe this encourages some to document better.
More information about the Digitalmars-d
mailing list