Path: utzoo!attcan!uunet!decwrl!sgi!shinobu!odin!thebeach.wpd.sgi.com!shap From: shap@thebeach.wpd.sgi.com (Jonathan Shapiro) Newsgroups: comp.std.c++ Subject: Re: aliases, ptr coercions, and optimizations Message-ID: <11295@odin.corp.sgi.com> Date: 2 Aug 90 18:15:35 GMT References: <56170@microsoft.UUCP> Sender: news@odin.corp.sgi.com Reply-To: shap@sgi.com Organization: Silicon Graphics, WorkGroup Products Division Lines: 13 In article <56170@microsoft.UUCP>, jimad@microsoft.UUCP (Jim ADCOCK) writes: > My general proposal is that C++ be very restrictive in terms of what pointer > casts are "guaranteed" to work, allowing for maximum compiler optimizations, > while minimizing the pointer hacks that are "guaranteed" to work. IE, > good C++ citizens should get well optimized code, but C++ hacker code may > not work at all. This is not in the spirit of the language at all. There is nothing to prevent the optimizer from recognizing the non-optimizable cases and simply not optimizing them. Jon