Qt 4.6

Rafael Fernández López ereslibre at kde.org
Mon Jun 15 12:43:20 BST 2009


>
> You should never create your own Bool like this.  A reasonable
> solution would be to have an enum like:
>
> Folder, File, PermissionDenied
>
> Then have a method to return the enum.


Call it A, call it B. In the end, it is the same solution. Obviously, Bool
is not the best name in the world, and is not encouraged, but they are both
a enum in the same class. That does not make a very big difference.

However, yes, what you said is the best thing in this case, but before
shouting WTF I would have to read the context of that enum Bool, since for
me is not a WTF without context.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090615/7a0bcdcd/attachment.htm>


More information about the kde-core-devel mailing list