On Mon, May 23, 2011 at 03:05:43PM -0000, Parrot wrote:
> #1962: :instanceof('Foo') is untested
> Comment(by whiteknight):
> 
>  I strongly suggest we deprecate it. The current implementation through
>  IMCC is inextricably linked to the internals of the Sub PMC, and changing
>  that situation would almost be a larger task than removing and replacing
>  IMCC completely.

FWIW, as far as I know :instanceof has always been listed as an 
"experimental feature" (pdd19), so deprecation might not even be
needed.  It was implemented as an early attempt at creating 
HLL-derived Sub types (needed by Rakudo) that quickly failed, but
the code was never removed.

>  It's worth noting that at the PBC level this should be very possible to
>  do. However, IMCC makes it almost impossible to do as-is. An alternate
>  assembler (or an alternate tool for generating PBC without PIR/IMCC)
>  should give us new possibilities in this area.

>From Rakudo's perspective, the problem with :instanceof was that it
could only be used with PMCs (which had to exist and be loaded at
compilation time); it could not be used to create Subs that were 
defined in Parrot's Object/Class type hierarchy (e.g., as a HLL-derived
type).

Pm
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to