Pascal --> C question

00704a-Liber nevin1 at ihlpf.ATT.COM
Sat Mar 12 09:57:37 AEST 1988


In article <3352 at psuvax1.psu.edu> schwartz at 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."
/  (_</_\/ <__/ / <_	These are solely MY opinions, not AT&T's, blah blah blah



More information about the Comp.lang.c mailing list