Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcsun!sunic!kth!draken!d88-jwa From: d88-jwa@nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C 3.0 esoterica Keywords: C typedef pointer-to-function Message-ID: <1547@draken.nada.kth.se> Date: 1 Sep 89 11:17:30 GMT References: <5261@tank.uchicago.edu> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 17 In article <5261@tank.uchicago.edu> stuart@tartarus.uchicago.edu (Stuart A. Kurtz) writes: [ Problems with function pointers ] >doesn't. There is a workaround -- cast the PFI's to int and conversely -- >but the original code is legit C. I would suggest (long) of course, since (int) is 16 bits in many Mac compilers. Also, addition of pointers is not allowed in C (Just look at the previous flame-war in comp.lang.c |-( ) Addition of longs representing addresses MIGHT work on the mac for the forseeable future (providing, of course, that you use StripAddress) Happy Hacking -- This is your fortune from h+@nada.kth.se: Excellent time to become a missing person.