[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Re: const problems

From: Steve Hartwell
Subject: Re: [ft-devel] Re: const problems
Date: Tue, 07 Jun 2005 01:52:42 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

on 6/7/2005 12:57 AM Turner, David wrote:

Contrary to popular advice, putting "const" everywhere is
_not_ important. It's just semantic sugar, and a hint to
developers that can also be placed in the documentation of
a given function. Of course we'd all be better if it was
there in the first place, but they have strictly no impact
on performance or portability.
I'm sorry to find a reason to contradict you, but I don't think that Werner is proposing to put const "everywhere", just the places where the contract of not modifying the contents of parameters passed as pointers makes sense, such as in outline callbacks.

If you're worried that this will disrupt the current minor release API, please note that Werner has already reverted the recent changes, and is now seeking a nondisruptive solution leading to the next major release.

I can't believe I'm pleading the case of simple const declarations to a man who describes himself as "a bit anal on API abstraction".

Steve Hartwell

reply via email to

[Prev in Thread] Current Thread [Next in Thread]