Calling convention methods, VO to X#
Posted: Thu Jun 27, 2019 3:33 am
Hello,
in VO, a strong typed method is declared like this:
If I understand correctly, in X# (VO dialect), the Pascal calling should not be used anymore.
So, if I define a method in X# as
this method uses the Clipper calling convention? But it seems to enforce the typed parameter and return type.
And I can also write
without typing the uParam parameter?
I have seen, that even VO lets me define a method as
My final question is: how I should type my methods in new X# code, VO dialect?
In VO it was easy: I have typed methods using "as pascal" whenever possible, and otherwise I have not typed them at all. But it seems there are several intermediate forms.
Thank you for any clarification
Wolfgang
in VO, a strong typed method is declared like this:
Code: Select all
method MyMethod( cParam as string ) as void pascal class MyClass
So, if I define a method in X# as
Code: Select all
method MyMethod( cParam as string ) as void
And I can also write
Code: Select all
method MyMethod( uParam ) as int strict
I have seen, that even VO lets me define a method as
Code: Select all
method MyMethod( uParam ) as int pascal class MyClass
In VO it was easy: I have typed methods using "as pascal" whenever possible, and otherwise I have not typed them at all. But it seems there are several intermediate forms.
Thank you for any clarification
Wolfgang