type punning

Brandon Allbery bsa at ncoast.UUCP
Tue Feb 26 11:56:58 AEST 1985


> Article <8125 at brl-tgr.ARPA>, from cottrell at nbs-vms.ARPA
+----------------
| /*
| As promised, a good reason for type punning. We start off with the
| definition of basic doubly linked circular lists:
| 	

Oh, for crying out loud!  Someone give this person an Ada compiler, PLEASE!

		generic package LIST_PAK is
			...
			
		package COM_LIST_PAK is new LIST_PAK(COM_RECORD);
		package STR_LIST_PAK is new LIST_PAK(STRING);
			...

(Ada hacks -- did I do that right?  I haven't found an Ada compiler to play
with yet.)

--bsa
-- 
Brandon Allbery, decvax!cwruecmp!ncoast!bsa, ncoast!bsa at case.csnet (etc.)
6504 Chestnut Road Independence, Ohio 44131 +1 216 524 1416 -- CIS 74106,1032
		 -=> Does the Doctor make house calls? <=-



More information about the Comp.lang.c mailing list