Earlier quoted context omitted.
would it be fair to say you have just described references, or do I have to go and lookup this algol/mesa stuff?
Some examples using Modula-2, a Mesa's successor. How it allows for all the C pointer features, while adding a little bit more safety. MODULE examples; IMPORT Terminal, SYSTEM; (* procedure with reference parameter, no need for pointers *) PROCEDURE ChangeParam (VAR changeMe: CARDINAL); BEGIN changeMe := 25; END ChangeParam; (* procedure with a slice, bounds given by HIGH(changeMe) and LOW(changeMe). also a string in…
http://stackoverflow.com/questions/6456253/why-is-reference-...
it's a great shame it's defined in such an alien to use way in C++.