🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #242

Re: "packed" objects (Oops! Forgot something!)

#242
From: Jonathan Shapiro
Date: Thu, 02 Aug 1990 18:12
14 lines
1124 bytes
In article <GSTEIN.90Jul31194438@goober.oracle.com>, 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
Technical Details
Message-ID: <11293@odin.corp.sgi.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!sgi!shinobu!odin!thebeach.wpd.sgi.com!shap
References: <56159@microsoft.UUCP> <56165@microsoft.UUCP> <GSTEIN.90Jul31194438@goober.oracle.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <GSTEIN.90Jul31194438@goober.oracle.com>
Sender: news@odin.corp.sgi.com
Reply-To: shap@sgi.com
Organization: Silicon Graphics, WorkGroup Products Division
Lines: 14