Benchmark Modula-2
24-Apr-93 17:46:02
Sb: #34415-Benchmark Modula-2
Fm: Harry Callesis 72025,117
To: Art Steinmetz 76044,3204
Art –
(butting in here) Are you sure BM passes the whole structure? My
understanding of variable parameters vs. value parameters is that with
variable parameters only the address of the structure is pushed onto the
stack. In other words, your examples would be equivalent in what was put
on the stack, though not in what would be required by the parser to
compile (i.e., in the first case the address of a stack or global variable
_or_ a pointer to a memory-allocated area would do, whereas in the second
case only a stack or global variable could be passed).
I could always be wrong (it happens all the time 8^) ) but that's the
way I've always thought about it.
Harry