Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!mcnc!rti-sel!dg_rtp!throopw From: throopw@dg_rtp.UUCP (Wayne Throop) Newsgroups: comp.lang.c Subject: Re: canonical values - an amenity Message-ID: <740@dg_rtp.UUCP> Date: Mon, 8-Dec-86 11:14:05 EST Article-I.D.: dg_rtp.740 Posted: Mon Dec 8 11:14:05 1986 Date-Received: Wed, 10-Dec-86 02:48:28 EST References: <1542@batcomputer.tn.cornell.edu> <184@haddock.UUCP> Lines: 18 Summary: It really WAS a better suggestion! But... > karl@haddock.UUCP (Karl Heuer) > Let me make a [proposal] > the C community): > typedef union { int asint; char *asstring; double asreal; } universe; > universe u; int i; > ... > u = (universe)i; Oooooooh! I LIKE it. But I'd druther have the general ability to coin struct and union constants... passing small structs full of bitfields to functions that are manufactured out of integers on the fly is a more common problem. -- A LISP programmer knows the value of everything, but the cost of nothing. --- Alan J. Perlis -- Wayne Throop !mcnc!rti-sel!dg_rtp!throopw