Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!reed!lclark!dan From: dan@lclark.UUCP (Dan Revel) Newsgroups: comp.sys.mac.programmer Subject: Passing pointers to functions (was Re: HLock) Summary: Is it OK to pass pointers across segments? Keywords: Think C 4.0 pointers functions Message-ID: <859@lclark.UUCP> Date: 21 Dec 89 21:02:17 GMT Reply-To: dan@lclark.UUCP (Dan Revel) Organization: Lewis & Clark College, Portland OR Lines: 15 I have been following the HLock thread and would like to get some clarification. Is it safe to pass pointers to functions across segment boundaries? (I think this question might be rephrased: 'are my code segments going to be relocated while my program is running?', is that right?) I have tried doing this running the heapscramble (hs) mode of Macsbugs with no obvious ill-effects, but still, I wonder... Thanks, Dan -- dan@lclark tektronix!reed!lclark!dan Dylsexics untie! (-|