[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Which c++-features are allowed in KDE?
From:       Stephan Kulow <coolo () alpha ! tat ! physik ! uni-tuebingen ! de>
Date:       1999-04-23 11:03:37
[Download RAW message or body]

Reginald Stadlbauer wrote:
> 
> On Fri, 23 Apr 1999, Stephan Kulow wrote:
> > Kalle Dalheimer wrote:
> > >
> > > Roberto Alsina wrote:
> > > >
> > > > On Thu, 22 Apr 1999, Kai [ISO-8859-1] Köhne wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > subject says it all ... if I want to write KDE-code which runs on all
> > > > > supported systems (and compilers), can I use things like templates, c++-casts,
> > > > > exceptions?
> > > > >
> > > > > Maybe I'm blind ( or simply stupid :-) but I can't find any information
> > > > > about that on the web ...
> > > >
> > > > This is an informal thing based on what I see in the code:
> > > >
> > > > Anything supported by gcc 2.7 should be ok for KDE 1.1.x
> > > > Anything supported by egcs 1.1 should be ok for KDE 2.x
> > >
> > > This means for 2.7: templates sparingly, no exceptions, no C++ casts, no
> > > namespaces
> > > And for egcs: templates are OK, C++ casts are OK, namespaces are in
> > > principle OK, but should be discussed first here so that not everybody
> > > chooses namespaces at random. Exceptions are to be avoided because they
> > > make only sense if everything from the base libraries to the
> > > applications uses them. If this is not done, exceptions only slow down
> > > and enlarge your code.
> >
> > C++ casts are ok for both! At least if you leave out dynamic_cast :)
> 
> Why, I'm using lots of dynamic_casts in KPresenter and KWord.
> 
And, have you tried gcc 2.7 on kword?

Greetings, Stephan

-- 
As long as Linux remains a religion of freeware fanatics,
Microsoft have nothing to worry about.  
                       By Michael Surkan, PC Week Online

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic