Why are methods like KIO::open_RenameDialog(), not called KIO::RenameDialog::open()?
David Faure
faure at kde.org
Thu May 31 14:49:21 BST 2007
On Thursday 31 May 2007, Richard Dale wrote:
> Well my point is that I can't see any reason why these methods are in a
> namespace instead of in the classes that they could belong to as static
> methods. If the original class name has to be encoded in the method name
> like 'open_MyClassname', then it looks like some sort of workround to a
> problem in C++, that an elegant naming scheme to me (imho underscores and
> camel case don't mix). It is just as easy to type KIO::RenameDialog::open()
> as KIO::open_RenameDialog().
Yes this is old cruft (and *mostly* internal API anyway), feel free to make it KIO::RenameDialog::open().
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list