[fpc-devel] Const optimization is a serious bug
Alexander Klenin
klenin at gmail.com
Thu Jul 7 19:54:23 CEST 2011
On Fri, Jul 8, 2011 at 04:39, Martin <fpc at mfriebe.de> wrote:
> I do believe the feature itself is a valid feature (the ability for the
> programmer to tell the compiler to skip something like ref counts)
> There is a similar feature (via compiler switch) to skip implicit exception
> frames. (With the risk of mem leaks, and what else, if incorrectly used.
>
> The current naming may not be the best, since it implies a point of view
> different from the real meaning.
Sure.
> But the current naming is already there, shall we really make everyone who
> used the feature correctly, change their code, because some others did not?
> Wouldn't that be to punish the ones who got it right.
The problem with this particular feature is that *nobody* seems to use
it correctly --
if even compiler developers did not get it right, what can we expect
from ordinary
users?
About the rest of you ideas -- they certainly have some validity,
but I do believe they can be discussed separately.
--
Alexander S. Klenin
More information about the fpc-devel
mailing list