Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!cmcl2!brl-adm!adm!MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU From: MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU Newsgroups: comp.lang.c Subject: Undelivered mail Message-ID: <12289@brl-adm.ARPA> Date: 12 Mar 88 11:06:48 GMT Sender: news@brl-adm.ARPA Lines: 45 Subject: Re: Pascal --> C question [Non-Deliverable: User does not exist or has never logged on] Reply-To: Info-C@BRL.ARPA Received: From UWAVM(MAILER) by ALASKA with Jnet id 7218 for SXJVK@ALASKA; Sat, 12 Mar 88 01:22 AST Received: by UWAVM (Mailer X1.25) id 4899; Sat, 12 Mar 88 02:18:11 PST Date: Thu, 10 Mar 88 23:16:49 GMT Reply-To: Info-C@BRL.ARPA Sender: Info-C List Comments: Warning -- original Sender: tag was news@sigi.Colorado.EDU From: Frank Swarbrick Subject: Re: Pascal --> C question Comments: To: info-c@brl-smoke.arpa To: Vic Kapella 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."