Re: [gtk-list] Re: inconsistent use of const





On 23 Jan 1998, Rob Browning wrote:

> Michael Callahan <callahan@xmission.com> writes:
> 
> > This brings up the question:  Do you really want to start using
> > const in this code?  It might become hard to make everything
> > const-consistent.
> 
> I think it's a good idea.  I've been meaning to submit a patch for a
> bunch of prototypes and definitions myself, but haven't gotten around
> to it yet.  If you use them properly, they can help the compiler
> generate tighter code, and can also (sometimes) keep you from doing
> stupid things.
> 

using 'const' for strings can also allow to use the 'string' type with gtk-- 
and it's a very useful feature !!


	Alex



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