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

Is it possible to bind public c++ member variables to js #9

Open
swebb opened this issue Jan 31, 2012 · 2 comments
Open

Is it possible to bind public c++ member variables to js #9

swebb opened this issue Jan 31, 2012 · 2 comments
Assignees

Comments

@swebb
Copy link

swebb commented Jan 31, 2012

I've got a singleton class called Settings with lots of public instance members (mostly ints & floats). Is it possible to bind public instance members from c++ to javascript using vu8? How do I go about it?

Cheers.

Steve.

@insidewhy
Copy link
Contributor

Not possible yet, will take patches.

@tsa
Copy link
Owner

tsa commented Mar 21, 2012

Sorry haven't had a chance to do this yet, at the moment you have to create wrappers. I have a different solution to this planned, allowing you to wrap class methods with a function taking the class as the first parameter. Then you can create forwarding functions independently of the class interface. It might be worth supporting members accessed directly though.

@ghost ghost assigned tsa Mar 22, 2012
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

3 participants