[net.lang.mod2] Pointer dereferencing^^^^^^ in Modula-2

joel@decwrl.UUCP (Joel McCormack) (02/22/85)

From Mark Wittenberg:

- My enthusiasm was tempered when I noticed that it does NOT allow "ptr^^";
- you must use a run-time temp variable.  Anybody know why the change?

The EBNF production is

designator = qualident {"." ident | "[" ExpList "]" | "^"}.

Since {} means 0 or more times, qualident^^^^^^^^^^^^^^ is perfectly legal.
I've never actually had occasion to use this construct.  I don't know of any
reason why a specific implementation of Modula-2 would restrict this.


-- 
- Joel McCormack {ihnp4 decvax ucbvax allegra}!decwrl!joel
		 joel@decwrl.arpa