[Pas2js] Nested functions or procedures
heliosroots
heliosroots at gmail.com
Mon Dec 14 11:23:40 CET 2020
I am not able to use a nested function, if it is nested in a pascal class, I
do not know if this behavior is normal. It works if it is nested in a simple
function.
procedure AnimationFrame(ATime: double = 0);
begin
...
window.requestAnimationFrame(@AnimationFrame);
end;
///Error: Incompatible type arg no. 1: Got "procedure(Double) of Object",
expected "procedure(Double)"
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list