TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Adam Fitzpatrick
from: Paul Edwards
date: 1996-12-06 07:34:02
subject: structure packing

AF> #pragma pack(1)
AF> struct cow moo;
AF> #pragma pack(4)
AF> struct cow milk;

AF> Both structs must be identical, so the compiler must make the determination
AF> based on the #pragma pack setting in effect at the time the structure was
AF> defined.

AF> It'd have to be; otherwise the compiler would need to be able to
AF> differentiate between which style of padding was used. That'd be silly.
AF> You can't have two different types of "struct moo".

Actually, that's exactly what I had imagined as a possibility.  I'll assume
that that is silly from now on too.  :-)  BFN.  Paul. 
@EOT:

---
* Origin: X (3:711/934.9)
SEEN-BY: 633/267 270
@PATH: 711/934 808 50/99 635/728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.