Re: String API

2001-09-10 Thread Edwin Steiner
[EMAIL PROTECTED] (Simon Cozens) writes: > =head2 C > > This field is, as its name suggests, unused; however, it can be used to > hold a pointer to the correct vtable for foreign strings. Wouldn't it be better to put a vtable * directly inside struct parrot_string instead of the 'encoding' enum

Re: Revamping the build system

2001-10-23 Thread Edwin Steiner
Simon Cozens <[EMAIL PROTECTED]> writes: > On Thu, Oct 11, 2001 at 03:24:31PM -0400, Dan Sugalski wrote: > > 1) Build minimal perl 6 with default parameters using platform build tool > > But "platform build tool" is going to be 'make' - the alternative is > that we maintain and ship every flavou

Re: Revamping the build system

2001-10-23 Thread Edwin Steiner
If you think the ideas expressed in my previous post are sensible, I can go through my "MakeMake" and put together a design document, about what to seek and what to avoid, as far as I can tell. Additional issues (not mentioned in my post) would be: * usage of the front-end * dire

WinCVS [was Re: vtable.h]

2001-10-08 Thread Edwin Steiner
[EMAIL PROTECTED] (B Vlad) writes: > ps. have to figure how to get the WinCVS thing work... > can't seem to be able to access cvs.perl.org. I've used > the following set up: > > CVSROOT = :pserver:[EMAIL PROTECTED]:/home/perlcvs > Authentication = passwd file on the remote host. > > any suggest

Re: Vtables: what do we know so far?

2001-02-02 Thread Edwin Steiner
Filipe Brandenburger wrote: [...] > struct sv { > vtable_sv * ptr_to_vtable; > void * ptr_to_data; > void * gc_data; > }; [...] > I don't think I can get further from here. Note that, in all examples, > I didn't write the `this' pointer that every funct

Re: Vtables: what do we know so far?

2001-02-03 Thread Edwin Steiner
Matthew Cline wrote: > > We might want to have a member/method by which we can tell what type of > variable we're dealing with, so that a function can be passed an arbitrary > XV, and treat it differently if it's an SV, AV, and so on. > > For SVs, we might want to have a method to determine what

Specifying vtable API in terms of macros?

2001-02-03 Thread Edwin Steiner
Might this be madness? (BRAINSTORMS AHEAD!): The API of the Perl data types could be specified in the following way: *) a class hierarchy (hopefully not a deep one). eg. AnyV (XV?) | - | | | | SV

Re: Specifying vtable API in terms of macros?

2001-02-04 Thread Edwin Steiner
Dan Sugalski wrote: > > At 05:02 PM 2/3/2001 +0100, Edwin Steiner wrote: > >Might this be madness? (BRAINSTORMS AHEAD!): > > Generally, yes. :) > > The vtable stuff won't be exposed outside the core. This means embedding > programs and extensions will *not*

Re: Specifying vtable API in terms of macros?

2001-02-05 Thread Edwin Steiner
Branden wrote: [...] > > I also don't see how it wouldn't bang badly if we get an incorrect PMC. How > would we extract the 5th element of a scalar? And how would we read one line > out of an array? Sum two hashes? I think having only one vtable for all > would only put a burden on who implements

Re: Specifying vtable API in terms of macros?

2001-02-05 Thread Edwin Steiner
Branden wrote: > > Edwin Steiner wrote: > > Branden wrote: > > [...] > > > > > > I also don't see how it wouldn't bang badly if we get an incorrect PMC. > How > > > would we extract the 5th element of a scalar? And how would we read

PMC vs. SV*/AV*/... in the core (was Re: Specifying vtable API in terms of macros?)

2001-02-05 Thread Edwin Steiner
Branden wrote: [...] > Edwin Steiner wrote: [...] > > Different pointer types also make coding harder when there is no > > need to make a difference between object types. (When you just pass > > something on, for example.) > > > > I actually see it as strong t

Re: Another approach to vtables

2001-02-07 Thread Edwin Steiner
Dan Sugalski wrote: [snip] > That's OK, since my example was wrong. (D'oh! Chalk it up to remnants of > the martian death flu, along with too much blood in my caffeine stream) The > example > > $foo{bar} = $baz + $xyzzy[42]; > > turns into > >baz->vtable->add[NATIVE](foo, baz, xyzzy, key)

Re: Another approach to vtables

2001-02-07 Thread Edwin Steiner
Edwin Steiner wrote: > > Dan Sugalski wrote: > [snip] > > That's OK, since my example was wrong. (D'oh! Chalk it up to remnants of > > the martian death flu, along with too much blood in my caffeine stream) The > > example > > > >

Re: PDD 2, vtables

2001-02-08 Thread Edwin Steiner
Dan Sugalski wrote: > At 04:02 PM 2/7/2001 +, David Mitchell wrote: > > > >Please see my previous post on the subject. As I pointed there, > > implementing > > > >|| and && like that breaks short-circuits. > > > > > > No, it doesn't. Just because you pass in two PMCs doesn't mean that they >

Re: PDD 2, vtables

2001-02-08 Thread Edwin Steiner
Dan Sugalski wrote: > > At 11:57 AM 2/8/2001 +0100, Edwin Steiner wrote: > >Dan Sugalski wrote: > > > At 04:02 PM 2/7/2001 +, David Mitchell wrote: > > > > > >Please see my previous post on the subject. As I pointed there, > > > > imple