Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!purdue!decwrl!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpcllmr!mark From: mark@hpcllmr.HP.COM (Mark Rozhin) Newsgroups: comp.lang.pascal Subject: Enumerated types in TP40 Message-ID: <950016@hpcllmr.HP.COM> Date: 3 Feb 89 20:24:18 GMT References: <363@lafcol.UUCP> Organization: Hewlett-Packard Calif. Language Lab Lines: 22 >I believe something like sizeof(Enum1) div sizeof(Enum1(ord(One))) will do the >trick, but I'm unable to test this right now... what does sizeof( ) mean? consider the following: const a = 1; var w : packed record x : 0..1; y : 0..1; z : integer; end; being w.x := a; w.z := a; end somehow, i can only make sense of the size of a constant where the constant is a structure. any thoughts? mr