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

Re: PMCs and how the opcode functions will work

Thread Previous | Thread Next
From:
Simon Cozens
Date:
October 21, 2001 10:00
Subject:
Re: PMCs and how the opcode functions will work
Message ID:
20011020145954.A1193@netthink.co.uk
On Mon, Oct 08, 2001 at 06:36:32PM -0400, Dan Sugalski wrote:
>   num_type: 0, 1, 2, 3, 4, 5 for "same as you", native int, bigint, native
> 	     float, bigfloat, object
> 
>     P1->vtable_funcs[VTABLE_ADD + P2->num_type](P1, P2, P0);

I don't understand the "same as you" thing; num_type isn't a function,
but a part of the structure. How does P2->num_type then know that it's
the same or different from anything else?

-- 
The course of true anything never does run smooth.
		-- Samuel Butler

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