Closed ghorn closed 11 years ago
You're absolutely right, there's no need for passing userdata through visitChildren. You could also use IORefs. I'll try and remove the Alloc req. when I get a chance. Thanks for find this issue!
You are very welcome. Thanks for the bindings!
@chetant, I've already removed the Alloc requirement (and the user data parameter) in my branch. Sorry I haven't pushed it into this repo yet; as I mentioned in another bug I'm hoping to get it in sometime this week.
That's great! On May 5, 2013 11:51 PM, "sfowler" notifications@github.com wrote:
@chetant https://github.com/chetant, I've already removed the Alloc requirement (and the user data parameter) in my branch. Sorry I haven't pushed it into this repo yet; as I mentioned in another bug I'm hoping to get it in sometime this week.
— Reply to this email directly or view it on GitHubhttps://github.com/chetant/LibClang/issues/19#issuecomment-17465405 .
@ghorn, please see the llvm3.3
branch. Alloc has been removed.
I'm using a wrapper to avoid the
Alloc
requirement forvisitChildren
:Is this a reasonable thing to do? I don't see a reason to pass the data pointer through the c library when it can be done in haskell.