CompuServe Thread

#Help with Benchmark

2 messages in this thread
#105349From: Mike WeiblenJan 25, 1988 9:41 PM
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
#105428From: John DraperJan 26, 1988 1:18 AM
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.