bug-gnulib
[Top][All Lists]
Advanced

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

Re: "const" scalars


From: Ben Pfaff
Subject: Re: "const" scalars
Date: Mon, 12 Apr 2010 10:14:46 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Jim Meyering <address@hidden> writes:

> Paul Eggert wrote:
>> I agree with Bruno on this point.  It's hard enough to read C code
>> without having to wade through all those 'const's on local variables.
>
> By "local variables" you must mean "local scalar variables".
> You wouldn't argue for dropping "const" as a pointer attribute.

Are you thinking of pointers as not being scalars?  In C, scalar
types include pointer types, see C99 6.2.5: "Arithmetic types and
pointer types are collectively called scalar types."

(I don't have anything real to add to the discussion, but it's
good to be careful about vocabulary.)
-- 
Ben Pfaff 
http://benpfaff.org





reply via email to

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