hi,
IIRC (currently no pc around to check, but I realized this issue when
reading on objects pdd), calling a method in PIR can be done as follows:

$P0.'someMethod'()

but also:

.local string meth  /* or maybe a pmc ?*/
meth = 'someMethod'
$P0.meth()

However, this looks like as if the object in $P0 has a method called 'meth',
just as a class object has methods like 'inspect', and 'roles'. This is imho
a bit unfortunate, it makes this syntax a bit ambiguous.
It gets tricky if you have some variable that goes by the same name, like
'inspect', or 'roles'.

So, I would suggest to disallow arbitrary objects holding methods for this
syntax; only allow for strings as method names, or barenames if they are
known to be methods on the PMC.

kjs

Reply via email to