Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!uniwa!vaxa!a_dent From: a_dent@vaxa.uwa.oz Newsgroups: comp.sys.mac.programmer Subject: THINK Pascal saving A4 for Objects in CODE resource Message-ID: <1645.2610e886@vaxa.uwa.oz> Date: 28 Mar 90 08:38:29 GMT Organization: University of Western Australia Lines: 20 I am working on a Quickmail bridge which requires a CODE resource. The THINK documentation says you can't use globals in CODE resources but it would be LOTS easier to write if I could use Object Pascal. Am I correct in assuming that Object Pascal can be used if you can save and restore A4? Noting that CODE resources use the same library (DRVRRuntime.lib) as drivers. Reading between the lines, I think the only objection is that there isn't anywhere to stash A4. However, this particular environment maintains a globals resource for me so I could save and restore A4 there. What are my chances of writing a routine to do this? If I'm saving and restoring A4 before I use any globals or Object Pascal will that work and will it continue to work under version 3.0? Andy Dent A.D. Software phone 09 249 2719 Mac & VAX programmer 94 Bermuda Dve, Ballajura a_dent@vaxa.uwa.oz Western Australia 6066 Please note I am no longer associated with Schox Corporation!