Re: const correctness

Peter Geoghegan <peter@2ndquadrant.com>

From: Peter Geoghegan <peter@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <munro@ip9.org>, pgsql-hackers@postgresql.org
Date: 2011-11-09T15:33:28Z
Lists: pgsql-hackers
On 9 November 2011 15:24, Tom Lane <tgl@sss.pgh.pa.us> wrote:.
> If you go down this road you soon start needing duplicate functions
> for no other reason than that one takes/returns "const" and one doesn't.

Why would you have to do that?

To my mind, the fact that const "spreads" is a feature, not a deficiency.


-- 
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services