Re: Coding style point: "const" in function parameter declarations - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Coding style point: "const" in function parameter declarations
Date
Msg-id 4E01CC9E020000250003EA9C@gw.wicourts.gov
Whole thread Raw
In response to Coding style point: "const" in function parameter declarations  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 2. In cases such as "const Relation foo" where the parameter type
> is a typedeffed pointer, it is easy for readers to arrive at the
> false conclusion that this guarantees the function doesn't change
> the pointed-to structure.
So easy that in fact that was my belief when I wrote it.  Since that
was wrong, I totally support the (now accomplished) removal of the
useless and misleading qualifier.  Thanks for spotting this mistaken
assumption.
-Kevin


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: pg_dump vs malloc
Next
From: Merlin Moncure
Date:
Subject: Re: Coding style point: "const" in function parameter declarations