Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: String constants in a code resource Message-ID: <813@husc6.harvard.edu> Date: 12 Dec 88 13:41:52 GMT References: <5919@louie.udel.EDU> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Distribution: na Organization: Symantec/THINK Technologies, Bedford, MA Lines: 25 In article <5919@louie.udel.EDU> irwin@oscar.ccm.udel.edu writes: > I am trying to write an XFCN in LSC3.0 and ran into a bit of >a problem. Are string constants considered globals that are not In version 3.0, string constants (and floating-point constants) are stored in the global data area. This means that in a code resource, you'll need to preface your code with a RememberA0() followed by a SetupA4(), to ensure that your globals pointer is set up correctly. This same "feature" also means that you can't use string or floating- point constants in a library that's to be imported into Lightspeed Pascal 2.0... --Rich Rich Siegel Staff Software Developer THINK Technologies Division, Symantec Corp. Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel Phone: (617) 275-4800 x305 Any opinions stated in this article do not necessarily reflect the views or policies of Symantec Corporation or its employees.