🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2188

Re: Generic stack implementation

#2188
From: Randy Bush
Date: Mon, 14 Dec 1992 19:39
17 lines
1155 bytes
eepjm@wombat.newcastle.edu.au (Peter Moylan) writes:

> TopSpeed Modula-2 won't let you do arithmetic on addresses.  And a
> good thing, too, in my opinion.  Address arithmetic is one of the
> most non-portable things you can do, and I'm a little shocked to
> see an example of it in a textbook.

Hmmm.  As one of M2's stated design goals was to be able to write the entire
operating system in M2.  Hence, one wants to write storage [de]allocators,
device drivers for devices that use multiple addresses, ...

So, the issue is what is a reasonable zero-cost safety to put around the
mechanism so it is not accidentally misused?

randy
-- 
randy@psg.com   ...!uunet!m2xenix!randy
Technical Details
Message-ID: <1992Dec14.193901.28257@psg.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!psgrain!randy
References: <9212091316.AA14856@elg> <911288c.32.724187845@ace.acadiau.ca> <1992Dec14.133750.1@wombat.newcastle.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!psgrain!randy
From: randy@psg.com (Randy Bush)
Newsgroups: comp.lang.modula2
Subject: Re: Generic stack implementation
Message-ID: <1992Dec14.193901.28257@psg.com>
Date: 14 Dec 92 19:39:01 GMT
Article-I.D.: psg.1992Dec14.193901.28257
References: <9212091316.AA14856@elg> <911288c.32.724187845@ace.acadiau.ca> <1992Dec14.133750.1@wombat.newcastle.edu.au>
Organization: Pacific Systems Group, Portland Oregon, US
Lines: 17