Pointer dereferencing^^^^^^ in Modula-2

Joel McCormack joel at decwrl.UUCP
Fri Feb 22 07:42:58 AEST 1985


>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 at decwrl.arpa



More information about the Comp.lang.c mailing list