Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!rutgers!uwvax!umn-d-ub!umn-cs!mike From: mike@umn-cs.CS.UMN.EDU (Mike Haertel) Newsgroups: comp.lang.c Subject: Re: Typeof operator in C (Re: An Interesting View of "Strong" Vs. "Weak" Typing) Message-ID: <18180@umn-cs.CS.UMN.EDU> Date: 14 Jan 90 23:11:55 GMT References: <16678@megaron.cs.arizona.edu> <7106@tank.uchicago.edu> <-K016ODxds13@ficc.uu.net> <5263@buengc.BU.EDU> <-121H63ggpc2@ficc.uu.net> Reply-To: mike@umn-cs.cs.umn.edu (Mike Haertel) Organization: Free Software Foundation Lines: 18 In article <-121H63ggpc2@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >I said... what would typeof() return for some complex structure. This >being the typeof that returns a first-class object, not the typeof from >GCC >> `struct _T_aaa' or something similar. >You mean it would return a string? That's an interesting idea. I would have >expected it to return a small integer of some sort. You know: _T_INT, >_T_CHAR, _T_DOUBLE. C has no run-time "type" type. The type value of a typeof construct exists only in the mind of the compiler. -- Mike Haertel "Everything there is to know about playing the piano can be taught in half an hour, I'm convinced of it." -- Glenn Gould