🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #26

Re: Pointers in ALGOL

#26
From: Ian Joyner
Date: Mon, 02 Nov 1992 08:38
38 lines
2224 bytes
jch@rdg.dec.com (John Haxby) writes:

>C's pointers are a pain in the neck sometimes.

Great understatement :-) You simply don't need C style pointers in decent
programming languages. Standard Algol 60 does not have pointers. However,
I use pointers in Algol all the time, Unisys A Series extended Algol 60
that is (the assembler for the machine.) These pointers are very different
in nature to C pointers. They are mainly meant for scanning text and data
strings. These are very useful for parsing, etc, and map into single
machine instructions, so that you can accomplish quite complex block
updates with editing in one instuction.

They also differ from C pointers in that if you run off the end of the
block you are pointing at, you get a fault immediately, as the hardware
checks for this.

You can also have array references, which are used for making multi
dimensional array access more efficient. This has already been mentioned
in a post on Algol 68.

As C.A.R Hoare said, Algol is a significant advance over most of its
successors (particularly C).

---
Ian Joyner  ACUS (Australian Centre for Unisys Software)    ian@syacus.acus.oz
"Where is the man with all the great directions?...You can't imagine it,
 how hard it is to grow, Can you imagine the order of the universe?" ABWH
Disclaimer:Opinions and comments are personal.
115-117 Wicks Rd, North Ryde, N.S.W Australia 2113
Tel 61-2-390 1328	Fax 61-2-390 1391


-- 
Ian Joyner  ACUS (Australian Centre for Unisys Software)    ian@syacus.acus.oz
"Where is the man with all the great directions?...You can't imagine it,
 how hard it is to grow, Can you imagine the order of the universe?" ABWH
Disclaimer:Opinions and comments are personal.
Technical Details
Message-ID: <1992Nov2.083810.1652@syacus.acus.oz.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!usage!syacus!ian
References: <BwqwKt.AGI@nic.umass.edu> <1992Oct27.080658.28422@arb-phys.uni-dortmund.de> <chl.720269838@cs.man.ac.uk> <1992Oct29.113733.3956@rdg.dec.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!usage!syacus!ian
From: ian@syacus.acus.oz.au (Ian Joyner)
Subject: Re: Pointers in ALGOL
Message-ID: <1992Nov2.083810.1652@syacus.acus.oz.au>
Organization: ACUS Australian Centre for Unisys Software, Sydney
References: <BwqwKt.AGI@nic.umass.edu> <1992Oct27.080658.28422@arb-phys.uni-dortmund.de> <chl.720269838@cs.man.ac.uk> <1992Oct29.113733.3956@rdg.dec.com>
Date: Mon, 2 Nov 1992 08:38:10 GMT
Lines: 38