Leopold Toetsch wrote:
> I think, we could use that as well generically. classes/fixedpmcarray
> and some others have it implemented in invoke()
Why not generally use the class'es invoke method to create new PMCs/objects?

        $P0 = getclass 'Foo'
        obj = $P0( arg1, arg2, arg3... )

.namespace ['Foo']

.sub __init method # or whatever the BUILD property says
        .param int arg1
        .param pmc arg2

        print "self is a newly created Foo object"
.end


jens

Reply via email to