|
Re: [perl #31938] [PATCH] add missing get_repr() op: msg#00297lang.perl.perl6.internals
Stéphane Payrard <stef@xxxxxxxxxxx> wrote: > On Tue, Oct 12, 2004 at 12:14:29PM -0000, Leopold Toetsch via RT wrote: >> Stephane Payrard <parrotbug-followup@xxxxxxxxxxxxxx> wrote: >> > +++ ./ops/pmc.ops 2004-10-11 22:30:10.819391992 +0200 >> >> > +op get_repr(out STR, in PMC) { >> > + $1 = $2->vtable->get_repr(interpreter, $2); >> > + goto NEXT(); >> >> To op or not to op that's again the question. Pie-thon code just does: >> >> $Py = $Px."repr"() >> >> or some such. > That's the point. I have not yet figured out a way to access that > vtable entry short of creating an opcode. With the --python switch a C<repr> NCI method gets attached to the ParrotObject PMC, which all PMCs inherit from, when method lookup is done. But anyway, the opcode is useful for testing, so the patch is applied now. > -- > stef leo |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [perl #31953] [PATCH] support of multiple identifiers in a .sym directive: 00297, Leopold Toetsch |
|---|---|
| Next by Date: | [perl #31966] [PATCH] memalign for Mac OS X (to allow ARENA_DOD_FLAGS), plus a note for OpenBSD: 00297, via RT |
| Previous by Thread: | Re: [perl #31938] [PATCH] add missing get_repr() opi: 00297, Stéphane Payrard |
| Next by Thread: | [perl #31949] [TODO] finhish complex PMC: 00297, via RT |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |