#Baffled by Benchmark
04-Dec-87 22:08:03
Sb: #96394-#Baffled by Benchmark
Fm: Richard Bielak 75716,352
To: Thomas Holaday 70407,534
Tom, the problems you are running into are due to the fact that Intuition was
written in C. To a "C" program strings are accessed via pointers (loosely
speaking) and Modula-2 must conform to C standard. An ADDRESS in Modula-2 is
just like an ADDRESS in assembler. You know, the number assigned to each memory
location. There is one more thing here…when you pass a string to a procedure
that sets up a menu the string must exist after the procedure is done. So the
string must be passed as VAR parameter. Now a you can't pass a constant (!) as
a variable (!). So the way to get around this dilema is to pass the address of
the constant…..
…I don't think I'm explaining it to well…if you really have more questions,
give me a call I'll be happy to tell you all you want to know….Richie