-
Notifications
You must be signed in to change notification settings - Fork 13
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
luabind policies opinions #20
Comments
Although it really doesn't seem maintained, I was able to post messages without moderator approval at luabind-user.
I'm not sure what you mean. Could you give an example?
I'm not aware of any. In my opinion you are right -- it would be better to introduce an additional class
That sounds like a good design to me, even better than a |
Hi there! Another question popped up: Unfortunately the policy system is pretty deeply integrated and so my version is currently a big mess. I had not anticipated how much time it would take me to refactor this and all the attention that is necessary. With Kind Regards |
As you can see in luabind/make_function.hpp the actual value of the passed
Sure. |
Okay,
My problem now is, that I did all the stuff outside of source control, I don't know why I did that, but that's the situation. I'll have to find a solution for that. Any ideas? I have thought about checking your fork out and just copy the hell over, but the problem is that my source was rpavlik's fork and not even the most recent one... I'd like my version to be a fork of some way so it's related to the original project, but I don't know where to snap in. When I sorted that out, I'd go about applying the patches I find in your commit list somehow. With Kind Regards, |
The easiest way would probably be to first fork and clone the repository you based your work on. Then use For the failing tests: They probably failed even before your changes. 1) is removed because I thought that it cannot possibly work (but in fact it should, although possibly the test requires some changes). 2) is fixed with 6f0651d. |
Hi there, thank you so much! |
Alright, I'm sorry for the rather long absence, I had two unenjoyable code sprints that held me back until today. |
Hello,
I'm currently working on a fork of luabind that gets rid of all boost
dependencies and makes use of c++11 unconditionally, so there are no
header-variadic-simulations left, which (aside from the enormous
boost/mpl includes) basically brought my visual studio to crawl and made
intellisense in any code using luabind pretty much unusable.
To put this into a context: I want to be able to add stuff like custom
indexer operators etc. and found that I just could not understand
luabind. It's utterly complex and its internals are pretty much
undocumented. So I'm basically applying transforms to a beast that I
don't yet understand completely while trying to maintain existing test
compatibility.
Currently I'm reworking the policy system. I found that luabind uses
policies for argument conversion (obviously necessary) and "call-static"
policies. It puts them together in one big list and when specific
policies are necessary, it searches in the policy list for policies.
This causes that converter policies are specialized for the occurance
index in call signatures, slow searches everywhere etc. That's why my
current attempt is having a converter-policy list that matches the
signature type list and a "call static" policy list. So my questions to
the ones that grasp current luabind's policy system: Do you see an
obvious problem in the long run with this pattern? Has any converter
policy ever been dependant on the argument index it was specialized for?
I could not find any occurance of this dependency but maybe I'm breaking
everything here.
With Kind Regards
Michael
The text was updated successfully, but these errors were encountered: