Dan Sugalski <[EMAIL PROTECTED]> wrote:

> Right now, we can create new PMCs by calling the class init method.
> It takes no parameters which somewhat limits the utility of the thing
> as a true initializer.

Does it or not?

    newclass P1, "Foo"

    find_global P2, "_init"
    store_global "Foo", "__init", P2

    find_type I1, "Foo"
    new P5, .PerlString
    set P5, "hello\n"
    new P3, I1
    ...
.pcc_sub _init:
    print "init\n"
    print P5
    ...

$ parrot o.pasm
init
hello



leo

Reply via email to