Re: get_pmc_keyed() in PerlString?

2003-12-08 Thread Dan Sugalski
.) 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? This... could be a problem. Perl, using a perl string as an array, should treat it as a symbolic reference if that's enabled

Re: get_pmc_keyed() in PerlString?

2003-12-04 Thread 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

Re: get_pmc_keyed() in PerlString?

2003-12-04 Thread Thies C . Arntzen
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

Re: get_pmc_keyed() in PerlString?

2003-12-04 Thread Leopold Toetsch
Thies C . Arntzen [EMAIL PROTECTED] wrote: Am 04.12.2003 um 15:17 schrieb Leopold Toetsch: 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

get_pmc_keyed() in PerlString?

2003-12-03 Thread Sterling Hughes
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