[fpc-pascal] Re: User-defined operators and dummy parameters

leledumbo leledumbo_cool at yahoo.co.id
Sat Aug 10 13:40:23 CEST 2013

works if I change the operator header to:

operator + (const r: r_; const a: t1) s: integer;

from gdb bt, the problem seems to be assignment from shortint to variant:

#0  0x00000000 in ?? ()
#1  0x08057205 in SYSTEM_$$_assign$SHORTINT$$VARIANT ()
#2  0x0806bf94 in U_$SYSTEM_$$_OUTPUT ()
#3  0x0804816f in plus (R=..., A=0xb7ff7068) at x.pas:30
#4  0x080482ef in main () at x.pas:47

> Doesn't work without tuple support

a1 := t1.create(1,2,3,4,5);

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/User-defined-operators-and-dummy-parameters-tp5716106p5716107.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

More information about the fpc-pascal mailing list