Example:
Class A has method Test
source-procedure: Handle-A which represents Class A file.
We use DYNAMIC-FUNCTION("Test" in Handle-A ) to call the method Test in Class A.
This always for us in 11.5, 11.6. But it does not work in 11.7 It will give an error: User-defined function 'Test' invoked dynamically but could not be found.
This is affecting our programs and causes that application hang.
|
Nothing wrong with your statements Mike, still if PSC somehow allowed a procedure handle (SOURCE-PROCEDURE) to point to a class instance and with that using DYNAMIC-FUNCTION was allowed then they would rather do something to keep that working for backward compatibility sake… we all know this is paramount here and bugs aren’t fixed because of it :)
Nothing wrong with your statements Mike, still if PSC somehow allowed a procedure handle (SOURCE-PROCEDURE) to point to a class instance and with that using DYNAMIC-FUNCTION was allowed then they would rather do something to keep that working for backward compatibility sake… we all know this is paramount here and bugs aren’t fixed because of it :)
It should still be spotted by the compiler and marked as error/warning depending on strict level.
Marian Edu
Acorn IT
www.acorn-it.com
www.akera.io
+40 740 036 212
|
Agreed on both, was more a teaser than a real comment :)
As everyone has already said, if Test is a method in class A, not a function in a procedure, then using DYNAMIC-FUNCTION("Test" in Handle-A ) should NOT work Don't know how it was working before - probably an accident. You really need to use DYNAMIC-INVOKE instead, as Mike said. We don't want to go back to making something work when it really makes no sense.