From: | Antti Sykari <jsykari@kosh.hut.fi> |
Newsgroups: | comp.compilers |
Date: | 25 Jan 2003 00:47:15 -0500 |
Organization: | Sonera corp Internet services |
References: | 03-01-065 03-01-070 |
Keywords: | design, performance |
Posted-Date: | 25 Jan 2003 00:47:15 EST |
fjh@cs.mu.OZ.AU (Fergus Henderson) writes:
> Making arguments read-only is not sufficient to ensure that
> passing variables by reference or by value will be completely
> transparent to the user. ...
I can't think of a better solution than to enforce a mindset that any
parameter might be passed by reference and the programmer must not
rely on any assumptions on the passing method. If reference semantics
are desired, a pointer should be used. This seems more reasonable
than always enforcing a pass-by-value policy.
-Antti
[Gee, we're reinventing Fortran. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.