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
Passing by value #161
Comments
It would be quite alright if I were to pass the argument by reference, but I was unable to accomplish that either. |
Huh? There is nothing called |
Sorry, already edited. I don't think that it is a problem of parenthesis. Python is quite happy about
|
Please just try with parentheses... |
You mean to do - f = example.Foo() ? That doesn't work since I didn't provide constructor for structure Foo. Is that the problem? |
exactly.. please look at the documentation examples before posting here -- my resources for these kinds of support tickets are very limited. |
I see. Ok, sorry to bother, I will try harder next time. |
Assume we have following c++ code -
And very simple python script where we create Bird structure and want to pass it by value to function show -
This, to me quite surprisingly, causes following error:
Why is that so? Am I doing it wrong or passing by value is just not possible? I didn't really found anything about this in the docs :-/
The text was updated successfully, but these errors were encountered: