qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] qobject_cast<> questions

Subject: Re: [Qt-interest] qobject_cast<> questions
From: "Ross Bencina"
Date: Sun, 31 May 2009 21:28:04 +1000
Thiago Macieira
>But I argue that we shouldn't need to document when things work exactly as
>expected. If qobject_cast is meant to work as a replacement for
>dynamic_cast, then it should work like it.

Ok, great, that is the most specific description of what qobject_cast is 
supposed to be I have read. That is much clearer than the documentation, 
which says:

"""
The qobject_cast() function behaves similarly to the standard C++ 
dynamic_cast()
"""

Note that it does not say "exactly" it says "similarly" -- it is vague, very 
vague. When Qt docs say something vague like that I have _no_idea_ what to 
expect. Perhaps the writer meant "the same as" but that's not what's 
written.

I have filed the bug.

Thanks.

Ross. 

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>