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

CREATE-PROCESS returns a raw pointer #11

Open
phoe opened this issue Feb 21, 2019 · 0 comments
Open

CREATE-PROCESS returns a raw pointer #11

phoe opened this issue Feb 21, 2019 · 0 comments

Comments

@phoe
Copy link

phoe commented Feb 21, 2019

From README:

ASYNC-PROCESS> (create-process "python")
#.(SB-SYS:INT-SAP #X7FFFEC002830)

CREATE-PROCESS seems to return a raw pointer, which might not be a good idea type-wise. I have no way to differentiate between pointers created in another way (for example via CFFI allocation) and processes created by CREATE-PROCESS.

Have you considered using a struct or a class wrapper around the returned value so operators like TYPECASE and generic dispatch can work?

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