a register_function with a different parameter list crashes the runtime
Code:
Object oButton1 is a Button
Set Location to 30 109
Set Label to 'oButton1'
Register_Function SectionID Returns Integer
// fires when the button is clicked
Procedure OnClick
Integer iRetval
Move (SectionID(Self, 1)) to iRetval
End_Procedure
Function SectionID Integer iItem Returns Integer
End_Function
End_Object
the compiler doesnt catch the declaration mismatch either
the compiler should show a warning of course and the runtime shouldnt just simply crash but rather show an error message or work as it did pre 20