-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Create a macro for properly setting builtin member functions #193
Comments
This is a good idea, although i wonder if it will overlap Function Objects Would this macro only be used for built-in functions? Or would you see it being used for functions we come across in code? |
Depends on what you mean by "functions we come across in code". It is a more humble version of |
I'm happy to push ahead with this, we can always change it as need be. |
Great. I believe it will be a good first issue. Will mark it as such, if anyone is interested. |
I can take care of this |
This issue can be closed I guess |
Done as part of #206 |
I'm getting |
I think a new issue for your issue would be better @thiagoarrais |
Sure! |
When creating a new member function for some
builtin
, you need to make sure thecreate_constructor()
function contains this:Writing these two lines for each new function can prove tedious and error prone, as the second line can be missed when needed (functions have their
length
property reflect the number of arguments they accept).What I propose is the following macro:
which will essentially contain the 3 aforementioned boilerplate lines.
What I am saying should definitely not be set in stone. It is only supposed to start a discussion on the topic.
The text was updated successfully, but these errors were encountered: