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

Change the return value of the class_initialize method to int instead of bool #15

Open
gprossliner opened this issue Jun 27, 2016 · 0 comments
Milestone

Comments

@gprossliner
Copy link
Owner

cobj itself has no dependency to the value of the class_initialize method. cobj just returns whatever is returned from the initialize_impl method. It's up to the caller to check it or not, or to assign any semantic with the value.

Why change to bool?

  • the application could use it to return an error-code instead of just true or false
  • we would not have an internal dependency to <stdbool.h>, which would effect all files getting in touch with cobj
  • in v2 we will no longer need cobj.h, so there will be no need to include any (even standard) .h file
@gprossliner gprossliner added this to the V2 milestone Jun 27, 2016
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