K Stol <[EMAIL PROTECTED]> wrote: > ----- Original Message ----- > From: "Dan Sugalski" <[EMAIL PROTECTED]> >> >> This, of course, brings up the question of who gets to decide whether >> things are passed by value or reference, the caller or callee, so I'm >> up for discussion on that.
> The callee copies the passed-in PMCs, so the callee would be responsible. In > this case, the caller isn't really sure if the passed-in PMCs are still > valid after the function call: If we are inside one language, that is all up to the compiler. You don't have that at subroutine calls only, but on each assignment statement: set P0, P1 set I0, I1 are very different instructions. This is a compiler problem to emit a correct sequence of set/assign/clone or something. The real fun comes, when one language calls a sub/method of another one. The proposed intermediate param class can't help here. Its a matter of interface definitions - and that is fixed (IMHO) by the function providing the interface or functionality > klaas-jan leo