At 08:09 PM 12/18/2001 +0000, Alex Gough wrote: >On Tue, 18 Dec 2001, Dan Sugalski wrote: > > [BTW, I'm being horrible and replying to this on perl6-internals, since > > it's important] > > At 09:16 AM 12/17/2001 -0800, Brent Dax wrote: > > >Dan Sugalski: > > ># However, that's not appropriate here--set P0, P1 should just copy the > > ># pointer from P1 to P0. Actually stuffing the value of the PMC > > ># pointed to by > > ># P1 into the one pointed to in P0 should be done with a different op. > > > > > >but please give at least some consideration to the fact that most people > > >on p6i seem to think the copy functionality is appropriate. > > > >I, for one, like the current shallow pointer copy version. It fits nicely >with the way perl passes parameters into subs (by reference).
It really should go all three ways. There are times when you want to overwrite with a copy of the pointer, overwrite with a copy of the structure, and do an assign into an existing structure. So... Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk