> I appreciate that I'm abusing the language here, but /should/ the original
implicit conversion have worked?
I don't know, but IMO it should. Well, a variant should be able to accept
any variant compatible type, right?
> Does there have to be an explicit destroy or similar?
Nope, dynamic array
leledumbo wrote:
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 0x in ?? ()
#1 0x08057205 in SYSTEM_$$_assign$SHORTINT$$VARIANT ()
#2 0x0806bf94 in U_$SYSTEM_$$_
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 0x in ?? ()
#1 0x08057205 in SYSTEM_$$_assign$SHORTINT$$VARIANT ()
#2 0x0806bf94 in U_$SYSTEM_$$_OUTPUT ()
#3 0x080