Hey,

I'm right now looking at getting a proper implementation of array/string
offsets done for the PHP compiler.

Here's the problem, in PHP you can access indices of both string's an
array's in the same way, meaning:

<?php
$foo = "hallo johnny";
echo $foo[1]; // "a"
?>

Is just as valid as:

<?php
$foo = array("a", "b", "c");
echo $foo[1]; // "b"
?>

To have this available easily using Perl's types, get_pmc_keyed() would
need to be implemented in the PerlString PMC.  Currently (for the sake
of nice looking mandelbrot demos), we just assume is a native string and
do the offset from that string (which parrot/imc does support.)

Should PerlString support a get_pmc_keyed() method (according to Perl
5/6 semantics), or is this a point where its about time to start implementing 
our own PMCs?

-Sterling

Reply via email to