Article View: comp.sys.mac
Article #14042Re: LSP and DA PasLib, I need HELP!
From: mjbo
Date: Sat, 03 Jan 1987 20:52
Date: Sat, 03 Jan 1987 20:52
36 lines
1764 bytes
1764 bytes
----------------
You should be able to coerce a longint variable into a pointer by using
code something like this
var p1: longint;
p2: ^integer; { or a pointer to whatever you want to fetch}
p1:= parmCopyAddr; {the address of parameter RAM
copy}
p2:= pointer(p1);
This assumes that the address of the the low-memory copy of
the parameter ram is the same on all machines--
perhaps not a good assumption.
Type coercions of this nature are supported by the MPW and Lisa
pascal
compilers. I hope LSP also has them. otherwise you will have to use
a TRIX variant record with pointer and longint variants.
Type coercions are just about the only way for Pascal programmers to
live in the Mac environment. Otherwise we would have to learn C!
Sorry about the previous empty response--I never seem to
read these notes
in the office where I have and editor manual handy
---and who can figure out how to get help without a menu!!
Mark J. Borgerson
Oregon State University, Computer Science.
(mjbo@orstcs)
Technical Details
Message-ID:
<216800006@orstcs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!ames!sri-spam!sri-unix!hplabs!hp-pcd!orstcs!mjboReferences:
<2794@osu-eddi.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!ames!sri-spam!sri-unix!hplabs!hp-pcd!orstcs!mjbo From: mjbo@orstcs.UUCP (mjbo) Newsgroups: comp.sys.mac Subject: Re: LSP and DA PasLib, I need HELP! Message-ID: <216800006@orstcs.UUCP> Date: Sat, 3-Jan-87 15:52:00 EST Article-I.D.: orstcs.216800006 Posted: Sat Jan 3 15:52:00 1987 Date-Received: Mon, 5-Jan-87 22:05:28 EST References: <2794@osu-eddi.UUCP> Organization: Oregon State University - Corvallis, OR Lines: 36 Nf-ID: #R:osu-eddi:-279400:orstcs:216800006:000:1105 Nf-From: orstcs!mjbo Jan 3 12:52:00 1987