lem-project / async-process

MIT License
17 stars 6 forks source link

CREATE-PROCESS returns a raw pointer #11

Open phoe opened 5 years ago

phoe commented 5 years ago

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?