-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sugar to wrap C++ classes #32
Labels
enhancement
New feature or request
Comments
typedef 'MyClass' => Class[
[ speed => 'set_speed' ] => Method [ [Int] => Void ],
speed => Method [ [] => Int ],
private => [ fuel => Float ],
speed => Int,
driver => Str
]; Something like this? Usage would be something like... my $car = MyClass->new( speed => 0, driver => 'Mike' );
$car->set_speed(100);
print $car->speed;
Edit: In the above examples, |
As of this comment, C++
I haven't wrapped a full C++ yet to test how unwieldy that is. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Itanium mangling somewhat functional, defining and calling
this
methods should be handled internally.The text was updated successfully, but these errors were encountered: