On Tue, May 08, 2007 at 10:50:14AM -0700, Allison Randal wrote:
> We could entirely disallow barenames, so it's always either a quoted 
> string or a variable.
> 
> But even that doesn't solve the problem, because currently if the method 
> name is a string PMC:
> 
>   $P0 = new String
>   $P0 = "hello"
>   object.$P0()
> 
> It tries to treat the PMC as a method object and gives you the error 
> "invoke() not implemented in class 'String'".

Personally, I would think that the standard approach for going from
a String PMC to a method invocation would be via the find_method
opcode.  But that's just me.

Pm

Reply via email to