I'm writing an app that will use DCODs to handle processing of data.
(This will let me add extra functionality as required without having to rerelease complete apps, also allows for easier bug fixes)
Can I pass the address of a FN which lives in the app calling the DCOD and have the DCOD use the FN as if it was just another FN ??
Huh I hear you saying...
You could try something like this:
- in the app:
fnAddr& = @myFn
CALL "DCOD",id,rslt&,(a,fnAddr&,c,selector&)
- in the DCOD:
LOCAL FN myDCODFn(fnAddr&)
DEF FN testFn USING fnAddr&
FN TestFn
END FN
Haven't tried this; it's just an educated guess.