This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why are we not using const?


 > How about
 >     typeof(T) const __t = (T);
 > ?
 > Ian

Oops, I didn't realize that using "typeof" preserves const-ness and
doesn't evaluate side-effects in "T".  After some quick testing it
turns out "typeof" is exactly what I needed.  I'm regtesting some
patches now.

		Thanks!
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]