[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: const T& func() const;
From: "Boyd Stephen Smith Jr." <bss03 () volumehost ! net>
Date: 2007-08-16 2:38:01
Message-ID: 200708152138.06424.bss03 () volumehost ! net
[Download RAW message or body]
On Wednesday 15 August 2007, Nick Shaforostoff <shafff@ukr.net> wrote
about 'const T& func() const;':
> I'm going to change
> KFileMetaInfo metaInfo(bool autoget = true,
> int what = KFileMetaInfo::Fastest)
> const; to
> const KFileMetaInfo& metaInfo(bool autoget = true,
> int what = KFileMetaInfo::Fastest)
> const; and other similar occurences if i find them
> this Monday. ok?
Hrm, I thought we decided *not* to do that since it restricts the
implementation -- it's not possible to later change the function to return
a calculated (rather than stored) value.
In fact, I was fairly sure we were going to go the other way and change
const T & -> T.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss03@volumehost.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
["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