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

Consider porting the libobject requirement directly into the source tree #2

Open
rmccullagh opened this issue Sep 15, 2016 · 0 comments
Assignees

Comments

@rmccullagh
Copy link
Collaborator

rmccullagh commented Sep 15, 2016

Importing the libobject source files (object.h, object.c) would provide many benefits. One drawback of using the libobject api is that custom types need to first be created in the libobject tree, pushed to master, then recompiled and installed.

libobject does provide a IS_POINTER type allowing an api user to wrap an arbitrary pointer type via newPointer. This is cool for some cases, but it mostly sucks for this language implementation because I have to do many casts to void * to install the property onto a hash table for example, then you have to also cast it back to your own type when you would get it out of the hash table.

@rmccullagh rmccullagh self-assigned this Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant