On Nov 8, 2004, at 11:42 PM, Leopold Toetsch wrote:
Jeff Clites wrote:
new P16, 32 # .PerlInt
add P16, P18, P17
That's what worries me, and what prompted the question. You don't know at compile-time that the return type should be a PerlInt.
Yes, I've already stated that this needs fixing and I've proposed a scheme how to fix it.
Fine then, but in the scheme you recently mentioned, you were explicitly null-ing out the return register. That shouldn't be needed--unnecessary overhead. That is, unless we're assuming the semantics of references types--that the return register would hold a reference object to store into, always. But I don't think we can mix the behaviors--unless there's some special flag on a PMC to indicate that it's a reference type, but that seems awkward. But since the pie-thon output doesn't do that, I'll assume the plan is not to use such reference types, if that's meant to be the canonical example.
JEff