Path: utzoo!mnetor!uunet!ncc!alberta!att-ih!ihnp4!ihlpf!nevin1 From: nevin1@ihlpf.ATT.COM (00704a-Liber) Newsgroups: comp.lang.c Subject: Re: Pascal --> C question Message-ID: <3982@ihlpf.ATT.COM> Date: 11 Mar 88 23:57:37 GMT References: <650001@hpcilzb.HP.COM> <4940001@hpiacla.HP.COM> <3352@psuvax1.psu.edu> Reply-To: nevin1@ihlpf.UUCP (00704a-Liber,N.J.) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 14 In article <3352@psuvax1.psu.edu> schwartz@gondor.cs.psu.edu (Scott Schwartz) writes: >Except that the useful ones are never that easy. One of my favorites: > bitstring: packed array[0..1023] of boolean; >In C you have to do bit-fiddling by hand to get the same effect. Yes, but in C you are guaranteed that bits are actually used. Not many implementations of Pascal bother to implement packed arrays any differently than non-packed arrays, so what you get is an array of 1024 words (where the sizeof(word) is implementation-dependent). -- _ __ NEVIN J. LIBER ..!ihnp4!ihlpf!nevin1 (312) 510-6194 ' ) ) "The secret compartment of my ring I fill / / _ , __o ____ with an Underdog super-energy pill." / (_