- edited description
[JSCodeGen] Assign a reference of function or array to a Variant variable
Issue #189
resolved
Is it normal please that we cannot assign a reference of function or array to a Variant variable?
Something like this doesn’t work:
type
TFunc = procedure();
//***************
var v: Variant;
var arr: Array of Variant;
var CB: TFunc;
v := CB; //Compilation Error
v := arr; //Compilation Error
The workaround is now:
type
TFunc = procedure();
//***************
var v: Variant;
var arr: Array of Variant;
var CB: TFunc;
asm
@v = @CB;
@v = @arr;
end;
Comments (3)
-
reporter -
repo owner - changed status to resolved
Fixed issue
#189support assigning funcs & arrays to variants in the JS CodeGen + test→ <<cset 008dcd52fd9e>>
-
reporter Thank you so much Eric! You are the best!
- Log in to comment