Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!olson From: olson@batcomputer.UUCP Newsgroups: comp.std.c Subject: function returning pointer to itself Message-ID: <5485@batcomputer.tn.cornell.edu> Date: 12 Jul 88 16:11:58 GMT Reply-To: olson@tcgould.tn.cornell.edu (olson) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 14 Does the new C standard have a natural way to declare a function that returns a pointer to itself ???? (if you are puzzled by the question, consider the problem of writing a state machine where the states are indicated by functions. To go from one state to another, a function exits, returning a pointer to the next function to be executed. In the C that I know, I know of no way to declare such functions. What does the new standard suggest?) Todd Olson olson@helios.tn.cornell.edu Physics Dept/ Cornell Univ/ Ithaca NY 14853