Re: Thoughts on vtables...

2001-12-03 Thread James Mastros
On Sun, 2 Dec 2001, Sam Tregar wrote: On Sun, 2 Dec 2001, Michael L Maraist wrote: On Sunday 02 December 2001 02:47 pm, Brent Dax wrote: Perl5 just used a string as the generic c-struct handle as far as I know.. Well, generaly what I see is that when c-struct-like data (that is,

Re: Thoughts on vtables...

2001-12-02 Thread Simon Cozens
On Sun, Dec 02, 2001 at 02:21:38AM -0500, Jeff G wrote: Currently vtable.h is dynamically constructed from what would appear to be a union of all possible operators on {int,num,string}. Now, this is certainly handy (especially after having to cast one type to another, and making heavy use

Re: Thoughts on vtables...

2001-12-02 Thread Jeff G
Simon Cozens wrote: On Sun, Dec 02, 2001 at 02:21:38AM -0500, Jeff G wrote: Currently vtable.h is dynamically constructed from what would appear to be a union of all possible operators on {int,num,string}. Now, this is certainly handy (especially after having to cast one type to

RE: Thoughts on vtables...

2001-12-02 Thread Brent Dax
Jeff G: # Simon Cozens wrote: # On Sun, Dec 02, 2001 at 02:21:38AM -0500, Jeff G wrote: # Currently vtable.h is dynamically constructed from what # would appear # to be a union of all possible operators on # {int,num,string}. Now, this # is certainly handy (especially after having to

Re: Thoughts on vtables...

2001-12-02 Thread Simon Cozens
On Sun, Dec 02, 2001 at 02:15:08PM -0500, Jeff G wrote: Are you quite sure? Implementing things like arrays of PMCs will be hard without operations like set_value(PMC* pmc, INTVAL index). This is why I'm waiting for Dan to come up with the explanation of how kesy are going to work. I

Re: Thoughts on vtables...

2001-12-02 Thread Michael L Maraist
On Sunday 02 December 2001 02:47 pm, Brent Dax wrote: Quick comment: I've been thinking about constructing an 'OpaqueHandle' PMC type.  All the programmer is supposed to know about it is that it points to Something (usually a C struct, but they don't have to know that).  I'm not sure what

Re: Thoughts on vtables...

2001-12-02 Thread Sam Tregar
On Sun, 2 Dec 2001, Michael L Maraist wrote: On Sunday 02 December 2001 02:47 pm, Brent Dax wrote: Quick comment: I've been thinking about constructing an 'OpaqueHandle' PMC type.  All the programmer is supposed to know about it is that it points to Something (usually a C struct, but they

RE: Thoughts on vtables...

2001-12-01 Thread Brent Dax
Jeff G: # Now I'll be the first to admit that I'm probably not the most coherent # in the world at (looks at the clock) 1:19 A.M. but I'm sitting here # trying to get something like a PerlInt_Array ready for compilation and # noticing some problems. It's also entirely possible that I'm # looking