Re: [perl #37340] Calling vtable functions from PIR fails in 0.3.0

2005-10-04 Thread Leopold Toetsch
Roger Browne wrote: b = a + a This will call the "__add" multi, whatever it is. My real problem occurs in Amber's HLL code where I call functions like "__add" directly (as part of the implementation of Amber's basic types), Well, as said, that shouldn't be necessary. If your native types

Re: [perl #37340] Calling vtable functions from PIR fails in 0.3.0

2005-10-04 Thread Roger Browne
> ... infix multi subs take an optional 3rd argument (the > destination) and that there is no good means yet to denote :optional > NCI arguments. OK. It's my fault for developing against the 0.2.3 release rather than against the svn branch. > ... Just use: > >b = a + a > > This will call

Re: [perl #37340] Calling vtable functions from PIR fails in 0.3.0

2005-10-04 Thread Leopold Toetsch
On Oct 3, 2005, at 21:58, Roger Browne (via RT) wrote: Under Parrot 0.2.3 the following PIR program prints "4" as expected: .sub "main" @MAIN .local pmc a, b a = new Integer a = 2 b = a.__add(a) print b print "\n" end .end Under Parrot 0.3.0 the same code fails like this: