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

2001-12-19 Thread Dave Mitchell
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Ah, the joys of Supreme Executive Power! Look 'ere - Supreme Executive Power resides in a mandate from the masses, not some farcical aquatic ceremony... :-) > We really have three separate but related needs: > >*) Shallow register copy. (set) This

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

2001-12-18 Thread Dan Sugalski
At 08:09 PM 12/18/2001 +, 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 her

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

2001-12-18 Thread Alex Gough
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

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

2001-12-18 Thread Dan Sugalski
[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 ># pointe

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

2001-12-17 Thread Jason Gloudon
On Mon, Dec 17, 2001 at 10:33:00AM -0500, Dan Sugalski wrote: > >Ok, so set creates an alias. The string set opcode should also create an > >alias for consistency, no ? > > It does. Or it did last I checked... It was changed to make a copy. A high level language implementor wanted Perl language

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

2001-12-17 Thread jgoff
It's actually named 'clone', and it calls the clone() vtable member of argument $2. The pertinent code reads like: $1->vtable = $2->vtable; $2->vtable->clone(interpreter,$2, $1); I've added clone() vtable entries to the appropriate PMC classes to support this feature. Along with the tweaks mad

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

2001-12-17 Thread Dan Sugalski
At 10:29 AM 12/17/2001 -0500, Jason Gloudon wrote: >On Mon, Dec 17, 2001 at 09:43:28AM -0500, Dan Sugalski wrote: > > > >Can you clarify what you mean by "deep copy" at least to the pointer > level ? > > > > > >set P0, P1 > > > > > >should invoke P0's "assignment" vtable function (does anyone kno

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

2001-12-17 Thread Jason Gloudon
On Mon, Dec 17, 2001 at 09:43:28AM -0500, Dan Sugalski wrote: > >Can you clarify what you mean by "deep copy" at least to the pointer level ? > > > >set P0, P1 > > > >should invoke P0's "assignment" vtable function (does anyone know if it > >already > >exists under a different name ?). For the e

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

2001-12-17 Thread Dan Sugalski
At 09:20 AM 12/17/2001 -0500, Jason Gloudon wrote: >On Sun, Dec 16, 2001 at 11:56:46PM -0500, Jeff G wrote: > > > so it generates code that has commands like 'set P0, P1', so that > > instruction needs to be added. The consensus on that thread seems to be > > that it should perform a deep copy of

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

2001-12-17 Thread Jason Gloudon
On Sun, Dec 16, 2001 at 11:56:46PM -0500, Jeff G wrote: > so it generates code that has commands like 'set P0, P1', so that > instruction needs to be added. The consensus on that thread seems to be > that it should perform a deep copy of the PMC, at least to the pointer > level. I'll hopefully be

[COMMIT] miniperl has been somewhat busy...

2001-12-16 Thread Jeff G
I've restructured the output from the miniperl parser to make things a little less confusing than having HoLoHoLo... monstrosities floating around, and added a rather large and hopefully somewhat comprehensive test suite into Miniperl/t. The code generator now handles expressions fairly cleanly, u