Am 04.12.2003 um 15:17 schrieb Leopold Toetsch:


Sterling Hughes <[EMAIL PROTECTED]> wrote:

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?

get_pmc_keyed() seems a bit heavy to handle single chars in a PerlString (Each char would create a separate PMC with a PerlString attached to it). Can you use native STRINGs for that?

sure, if we only knew the type of the variable we're accessing:


function dump0($a)
{
echo printf("%s\n",$a[0]);
}

dump0("hallo");  // called with a string
dump0(array("thies", "arntzen")); // with an array

would produce (in php):

h            // string offset
thies        // array index

how do you think we should generate "good" imc code for that?

re,
thies



Reply via email to