Path: utzoo!mnetor!uunet!mcvax!diku!daimi!erja From: erja@daimi.UUCP (Erik Jacobsen) Newsgroups: comp.lang.modula2 Subject: Re: Modula II on IBM PC with HALO graphics Message-ID: <1253@daimi.UUCP> Date: 12 Dec 87 13:13:50 GMT References: <17237@glacier.STANFORD.EDU> Reply-To: erja@daimi.UUCP (Erik Jacobsen) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 10 Keywords: Modula IBM HALO graphics jbn@glacier.STANFORD.EDU (John B. Nagle) asks in <17237@glacier.STANFORD.EDU> > Some questions on Logitec Modula II: > > 1. Are subranges assigned space appropriately? In particular, > does 0..255 occupy only one byte? No, subranges occupy the same amount of space as the type they are a subrange of. E.g. 0..255 will occupy two bytes. You may use a CHAR or a BYTE, and convert to and from CARDINAL everytime you need to do some caluculations.