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

List:       kde-core-devel
Subject:    Re: Request to change signature of a KUrl method
From:       Thiago Macieira <thiago () kde ! org>
Date:       2009-09-14 18:58:38
Message-ID: 200909142058.41011.thiago () kde ! org
[Download RAW message or body]


Em Segunda-feira 14. Setembro 2009, ās 20.27.30, Andreas Pakulat escreveu:
> On 14.09.09 19:36:47, Albert Astals Cid wrote:
> > A Dilluns, 14 de setembre de 2009, Ramon Zarazua va escriure:
> > > Hello.
> > >
> > > I have been working with KUrls frequently, and often I Need to clean
> > > the path of a URL before passing it in as an argument into a function.
> > > I am just suggesting having cleanPath return a reference to itself, to
> > > allow chaining, and avoid having to create temporaries to call the
> > > function.
> >
> > No.
> 
> Right, but...
> 
> > http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++
> 
> That page doesn't say _anything_ about changing the return type of
> functions. And from a pure name-mangling-perspective it won't make a
> difference on GCC as it doesn't include the return type in the mangled
> name. (as far as I understood Thiago's blog some time ago).

Someone has just added it:

You cannot
 for functions of any type
  change its signature. This includes:
   changing the return type in any way 

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009

["signature.asc" (application/pgp-signature)]

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

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