home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!news.univie.ac.at!chx400!bernina!bernina!neeri
- From: neeri@iis.ethz.ch (Matthias Neeracher)
- Subject: Re: Proper way to do Self-Modifying code?
- In-Reply-To: kent@lloyd.Camex.COM's message of Tue, 05 Jan 1993 16:31:38 EST
- Message-ID: <NEERI.93Jan7232329@iis.ethz.ch>
- Sender: news@bernina.ethz.ch (USENET News System)
- Organization: Integrated Systems Laboratory, ETH, Zurich
- References: <wfFp_jO00WB707kGgq@andrew.cmu.edu> <1993Jan4.120353.16699@kth.se>
- <1993Jan05.163138.20910@lloyd.Camex.COM>
- Date: Thu, 7 Jan 1993 22:23:29 GMT
- Lines: 25
-
- In article <1993Jan05.163138.20910@lloyd.Camex.COM>, kent@lloyd.Camex.COM (Kent Borg) writes:
- > Yes, trivial, so instead consider my post as follows: How should one
- > find one's A5 world from within a sleep queue procedure?
-
- I have never written a sleep queue proc, but wouldn't the following work ?
-
- TYPE TheBigSleep =
- RECORD
- sleepy : SleepQRec;
- wonderfulWorld: A5WorldPtr; /* Whatever you want */
- END;
- ...
- valium : TheBigSleep;
- ...
- SleepQInstall(@valium);
-
- According to TFM, your sleep routine will be called with a pointer to
- valium in A0 that it can cast to the appropriate type. Am I missing anything ?
-
- Matthias
-
- -----
- Matthias Neeracher neeri@iis.ethz.ch
- "I wouldn't recommend sex, drugs or insanity for everyone, but
- they've always worked for me." -- Hunter S. Thompson
-