develooper Front page | perl.perl6.internals | Postings from July 2002

Re: [perl #15340] [PATCH] Boolean PMC

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 22, 2002 16:21
Subject:
Re: [perl #15340] [PATCH] Boolean PMC
Message ID:
20020722174734.E9802@plum.flirble.org
I will now demonstrate my ignorance of the parrot build system:

On Mon, Jul 22, 2002 at 04:23:08PM +0000, Alberto Manuel Brandão Simões wrote:

> Opefully, this can be accepted ;)

Do pmc files get turned pretty directly into C code?

Content-Description: boolean.pmc
> /* boolean.pmc
>  *  Copyright: (When this is determined...it will go here)
>  *  CVS Info
>  *     $Id$
>  *  Overview:
>  *     These are the vtable functions for the Boolean base class
>  *  Data Structure and Algorithms:
>  *  History:
>  *  Notes:
>  *  References:
>  */


>     void set_bignum (PMC* value) {
>         /* XXX not sure if this can be optimized further safely */
>         // SELF->cache.struct_val = (DPOINTER*)value->vtable->get_bignum(INTERP, value);
> 	/* SELF->vtable = &(Parrot_base_vtables[enum_class_PerlBigNum]); */
>     }

And if pmc files get turned pretty directly into C code, do the C++ style
comments stay in there? If yes and yes, then the patch won't be acceptable
as is. We need to use /* */ comments only, as // isn't valid in C89.

(apart from that I don't know enough about anything perl6 to know whether
this is a good idea, and if so whether this is the best way to implement the
idea. Someone else knowledgeable will have to comment)

Nicholas Clark

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