Roger Browne wrote:
.sub add3 :method :outer('do_add3') #(4) .param pmc arg $P0 = n_add arg, 3 #(5) .return($P0).end This segfaults at #(3).
Actually at #(5)
- replace line #(5) by "$P0 = n_neg arg" (the significance
The reason was lexical lookuo inside MMD code. Fixed in r10150. Your example works fine now, printing 23.
BTW I had to change (r10148) 2 amber PMCs to comply to c89. leo