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: "packed" objects (Oops! Forgot something!) Message-ID: <11293@odin.corp.sgi.com> Date: 2 Aug 90 18:12:46 GMT References: <56159@microsoft.UUCP> <56165@microsoft.UUCP> Sender: news@odin.corp.sgi.com Reply-To: shap@sgi.com Organization: Silicon Graphics, WorkGroup Products Division Lines: 14 In article , gstein@oracle.com (Greg Stein) writes: > Where you will get into trouble is if you try to derive a packed class > from an unpacked class. This should definitely be an error. This is > cuz you don't want the subclass to try packing itself into the parent > class. If a packed is derived from a non-packed, the packing should not intrude into the non-packed base class. This introduces no compilation problems. This whole idea is nuts. It's clear that C++ really needs one more feature that severely restricts the ability to do derivation. Jon