I've only now had a chance to play with Benchmark & I seem to be having a
problem with pointers. The code below demonstrates: VAR a : ADDRESS; c :
POINTER TO CHAR;
..
INC(a); (* This is OK *)
INC(c); (* Compiler doesn't like this *)
INC(ADDRESS(c)) (* Is this what has to be done?? *) Is there another way to
increment pointers that I'm missing? Thanks – Mike
Mike,
A quick glance at a Modula 2 text seeems to indicate that the type must be
wrong. in the one that fails. Note that an ADDRESS is a more 'generic' type
than a POINTER TO something. The second example, ADDRESS(c), will work fine.
Regards, Larry.