Path: utzoo!utgpu!attcan!uunet!cbmvax!daveh From: daveh@cbmvax.UUCP (Dave Haynie) Newsgroups: comp.sys.amiga Subject: Re: Examine and ExNext return codes Message-ID: <5640@cbmvax.UUCP> Date: 6 Jan 89 21:44:40 GMT References: <3226@sugar.uu.net> Organization: Commodore Technology, West Chester, PA Lines: 37 in article <3226@sugar.uu.net>, peter@sugar.uu.net (Peter da Silva) says: > Keywords: ints, Examine > In article <574@boing.UUCP>, dale@boing.UUCP (Dale Luck) writes: >> struct point >> { >> short x,y; >> }; >> struct point a; >> printf("point(%d,%d)\n",a); > ^^^^^^^^^^^^^^^^^^----- Aaaaaaaaargh! > You, man, are one sick puppy. I hope there are no goodies like this floating > around in the deliverable software. :-\ That is mutated. Obviously, what you guys really wanted was C++, you perhaps just didn't know it. Then you could have done: point a; cout << "point" << a << "\n"; And you get the proper ASCII representation of a point, like maybe (##,##) or whatever you define in your point class, without resorting to kludgery or compiler specific hacks. > Peter "Have you hugged your wolf today" da Silva `-_-' Hackercorp. > ...texbell!sugar!peter, or peter@sugar.uu.net 'U` -- Dave Haynie "The 32 Bit Guy" Commodore-Amiga "The Crew That Never Rests" {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: D-DAVE H BIX: hazy Amiga -- It's not just a job, it's an obsession