Try running this code with the current state of the repo (commit 39a5779):
on init
declare ui_button (Button)
end on
function foo()
end function
on ui_control (Button)
call foo()
end on
It will not compile, saying foo() was not declared. It's because since commit 4050e31, it turns out Combine Callbacks option runs always (in order to raise that parse error) even if disabled, without actually preventing callback combining from taking place, so foo() function declaration gets optimized away. This is a problem - we don't want to remove empty function declarations - there are good reasons to have them stick around!
Try running this code with the current state of the repo (commit 39a5779):
It will not compile, saying
foo()
was not declared. It's because since commit 4050e31, it turns out Combine Callbacks option runs always (in order to raise that parse error) even if disabled, without actually preventing callback combining from taking place, sofoo()
function declaration gets optimized away. This is a problem - we don't want to remove empty function declarations - there are good reasons to have them stick around!