[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: getting char data out of QStrings in Qt 2.0
From: Warwick Allison <warwick () troll ! no>
Date: 1999-04-30 18:19:05
[Download RAW message or body]
On Fri, 30 Apr 1999, David Faure wrote:
>I like the cast too, because it allows to change the variable to a char *
>without changing the method calls. And when using an API (kdelibs), you
>don't have to worry about whether the member is a char * or a QString -
>take KURL, for example, all char * are QStrings now, so the cast (ofter
>implicit) is used very often.
>
>But I agree that in general, casts are not a good thing.
When things start to mature, I would recommend compiling all of KDE with
-DQT_NO_ASCII_CAST - the ASCII cast is there for "lazy" programmers (ie. those
of us who have deadlines).
--
Warwick
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic