Re: Vtables fixed, scalar started

2001-11-08 Thread Dan Sugalski
At 10:09 AM 11/7/2001 -0500, Jason Gloudon wrote: >On Tue, Nov 06, 2001 at 05:22:27PM -0500, Dan Sugalski wrote: > > > A variable with a numeric value can be taken in one of three ways: > > > > *) As an integer. Which means either platform-native or bigint > > *) As a float. Which means either pla

Re: Vtables fixed, scalar started

2001-11-07 Thread Jason Gloudon
On Tue, Nov 06, 2001 at 05:22:27PM -0500, Dan Sugalski wrote: > A variable with a numeric value can be taken in one of three ways: > > *) As an integer. Which means either platform-native or bigint > *) As a float. Which means either platform-native or bigfloat > *) As a generic number. Which me

Re: Vtables fixed, scalar started

2001-11-06 Thread Dan Sugalski
At 05:05 PM 11/6/2001 -0500, Jason Gloudon wrote: >After looking at the internal data types PDD and the vtable PDD (which by the >way is truncated on dev.perl.org in the pdd and HTML form), I can't make sense >of the separate float_type and num_type declared in the vtable structure. A variable w

Re: Vtables fixed, scalar started

2001-11-06 Thread Jason Gloudon
After looking at the internal data types PDD and the vtable PDD (which by the way is truncated on dev.perl.org in the pdd and HTML form), I can't make sense of the separate float_type and num_type declared in the vtable structure. struct _vtable { struct PACKAGE *package; INTVAL base_type;

Re: Vtables fixed, scalar started

2001-10-28 Thread Simon Cozens
On Sun, Oct 28, 2001 at 01:26:28PM -0500, Sam Tregar wrote: > Maybe I'm anal retentive, but I don't know if I'm ready to start writing > methods I can't test! You prefer to write tests for things that don't exist? :) Ah well, have it your own way. (That's to say, yes, I'd love to see some tests f

Re: Vtables fixed, scalar started

2001-10-28 Thread Sam Tregar
On Sun, 28 Oct 2001, Simon Cozens wrote: > You are all encouraged to write implementations of the vtable functions > in scalarclass.c Cool. So, what needs to get done first? By that I mean, what is standing in the way of our creating tests for scalar PMCs? Maybe I'm anal retentive, but I don'

Vtables fixed, scalar started

2001-10-28 Thread Simon Cozens
I've fixed (I hope) the huge horrible problem whereby vtable_ops was trying to do pointer arithmetic on struct entries, by making the multimethod entries into an array of function pointers. I've also made the vtable functions take a pointer to the interpreter, in case they need to do any GC stuff.