Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!think!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK Pascal saving A4 for Objects in CODE resource Message-ID: <2377@husc6.harvard.edu> Date: 28 Mar 90 22:43:02 GMT References: <1645.2610e886@vaxa.uwa.oz> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 24 In article <1645.2610e886@vaxa.uwa.oz> a_dent@vaxa.uwa.oz writes: >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? Right now, you can't write code resources in Object Pascal, because you need a jump table to support the method dispatches, and no mechanism is supported for the jump table at this time. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "When someone who makes four hundred and fifty dollars an hour wants to tell you something for free, it's a good idea to listen." ~~~~~~~~~~~~~~~