Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: on the fringe of C syntax/semantics Message-ID: <19987@mimsy.UUCP> Date: 5 Oct 89 06:14:42 GMT References: <80100001@bonzo> <19971@mimsy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 15 In article <19971@mimsy.UUCP> I wrote: [most lines deleted] > typedef int (*fn)(void); > fn x; [stuff missing here] > x = va_arg(ap, fn); [and here] > ((int (*)(sometype))fn)(firstarg); [and here] > fn(); Oops, the last two should be calls through `x', not `fn'. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris