develooper Front page | perl.perl6.internals | Postings from December 2001

RE: [COMMIT] miniperl has been somewhat busy...

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
December 18, 2001 12:16
Subject:
RE: [COMMIT] miniperl has been somewhat busy...
Message ID:
5.1.0.14.2.20011218151615.02fb72d0@pop.sidhe.org
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
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About