From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: nmm1@cus.cam.ac.uk (Nick Maclaren) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/02 Message-ID: <610sl2$puo$1@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 277370418 References: <610rbh$58f@news-rocq.inria.fr> Organization: University of Cambridge, England Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <610rbh$58f@news-rocq.inria.fr>, Robert Harley wrote: [ Correctly pointing out that I had miscounted the number of '*'s in the previous posters C type definition. ] >... Type qualifiers don't affect type compatibility, so >it's fine to add a 'const' in this manner. It's also OK discard a >'const' but compilers give a warning if you do so. This is getting rather off-group, but I don't want anyone to be taken in. Type qualifiers DO affect type compatibility, your example is incorrect C, and many compilers will refuse to compile it at all. I could explain why such constructions are needed, and the consequences for both efficiency and 'software engineering', but these newgroups are not appropriate places for that. Nick Maclaren, University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679