Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!nrl-cmf!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!ur-tut!sunybcs!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Newsgroups: comp.lang.c Subject: Re: Pascal --> C question Message-ID: <4766@sigi.Colorado.EDU> Date: 10 Mar 88 23:16:49 GMT References: <650001@hpcilzb.HP.COM> <4940001@hpiacla.HP.COM> <3352@psuvax1.psu.edu> Sender: news@sigi.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Organization: University of Colorado, Boulder Lines: 25 In article <3352@psuvax1.psu.edu> schwartz@gondor.cs.psu.edu (Scott Schwartz) writes: :In article <4940001@hpiacla.HP.COM> mlight@hpiacla.HP.COM (Mike Light ) writes: :>> SinWave: packed array[0..255] of char; :>> char SinWave[256]; : :>Almost any pascal-ism has an equivalent in C (but not necessarily :>the other way around). : :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. : How about: typedef char bool; bool bitstring[1024]; Or does the "packed" thing in Pascal have some special meaning? I never could figure out what the difference between a packed array and a regular array was. Frank Swarbrick (and his cat) swarbric@tramp.UUCP swarbric@tramp.Colorado.EDU ...!{hao|nbires}!boulder!tramp!swarbric "Can't help about the shape I'm in. I can't sing, I ain't pretty, and my legs are thin."