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

Automatically unwrap MPtr Julia "objects" ? #27

Closed
fingolfin opened this issue Sep 18, 2018 · 2 comments
Closed

Automatically unwrap MPtr Julia "objects" ? #27

fingolfin opened this issue Sep 18, 2018 · 2 comments
Assignees

Comments

@fingolfin
Copy link
Member

I wrote a Julia function which just returns its first argument, and put it into GAP variable myfunc. Now I get this:

gap> myfunc(fail, 2);
<Julia: Main.ForeignGAP.MPtr()>

It would be very convenient (and should be super cheap!) to instead return a this "MPtr" object as a regular GAP object. I.e., so that I'd get:

gap> myfunc(fail, 2);
fail
@sebasguts
Copy link
Contributor

Indeed, I will do this. Now with the integrated gc, this is sensible.

@sebasguts sebasguts self-assigned this Sep 18, 2018
@sebasguts
Copy link
Contributor

Done with #43

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

2 participants