Path: utzoo!utgpu!attcan!uunet!sco!jamesm From: jamesm@sco.COM (James M. Moore) Newsgroups: comp.sys.mac.programmer Subject: Re: (really segmentation) Object Pascal and memory management Message-ID: <1789@viscous.sco.COM> Date: 3 Mar 89 17:15:40 GMT References: <532@Portia.Stanford.EDU> <2642@pegasus.ATT.COM> Reply-To: jamesm@sco.COM (James M. Moore) Organization: The Santa Cruz Operation, Inc. Lines: 22 When I'm in the middle of a project using LSC, I create files named seg1, seg2, segN, and each one contains a procedure with the same name: file seg1: void seg1() {}; file seg2: void seg2() {}; In my main event loop, I do UnloadSeg(seg1-segN). Then when I want to change segmentation, all I have to do is drag these files around. This isn't optimal for speed or space, but it works and it's convenient. When I finally finish something to the point that I plan to give it to someone else, I'll take a look at the code and do it in a more elegant way. -- ** James Moore ** ** Internet: jamesm@sco.com ** ** uucp: {decvax!microsoft | uunet | ucbvax!ucscc | amd}!sco!jamesm ** ** Nil clu no suim ar bith ag SCO ceard a bhfuil me ag scriobh anois. **