Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are overloaded methods having a "_s" suffix #59

Closed
Jojain opened this issue Sep 5, 2021 · 1 comment
Closed

Why are overloaded methods having a "_s" suffix #59

Jojain opened this issue Sep 5, 2021 · 1 comment

Comments

@Jojain
Copy link

Jojain commented Sep 5, 2021

Hello,
The question is in the title. Why are some of the overloaded methods having a "_s" suffix.
For example :
TDataStd_Name has a Set method and two Set_s methods.
It's sometimes confusing because if we use the Set method the code will fail due to type error. (i.e the arguments aren't passed as the right overloaded method)

More important, is this random ? And can it change depending on the OCP version?

@Jojain
Copy link
Author

Jojain commented Sep 5, 2021

I had the good idea to check others issue after posting mine...
The answer is given here : #15
Methods with "_s" suffix are static methods.

@Jojain Jojain closed this as completed Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant