Storing Classes in Bytecode
chromatic
chromatic at wgz.org
Thu Jul 29 06:37:05 UTC 2010
On Wednesday 28 July 2010 at 20:42, Peter Lobsinger wrote:
> I am not sure we need another segment for this. Classes are just
> objects. If freeze-thaw isn't cutting it for classes, I think it is
> more indicative of general freeze-thaw issues than a situation that
> requires special-casing classes.
> AFAIK, classes freeze and thaw fine.
>
> .sub 'FooClass' :anon :immediate
> $P0 = newclass 'Foo'
> .return ($P0)
> .end
>
> .sub 'main' :main
> # .const 'Sub' $P0 = 'FooClass'
> $P0 = get_class 'Foo'
> $S0 = $P0
> say $S0
> .end
Confirmed (and why didn't I know this?). Now we need to see if Rakudo's using
this successfully.
-- c
More information about the parrot-dev
mailing list