Glen Fraser

Results 110 comments of Glen Fraser

(I just updated the Gist to show the success of calling both C++ and ChaiScript-defined callbacks.)

Just revisiting this (a few years later ;-). I was *almost* able to get what I wanted by exposing a separate ChaiScript function on my function type, to test whether...

Okay, the following seems to work for me. Unfortunately it captures *all* Assignable_Proxy_Functions, not just ones with the arguments and return type I want, but that's not a big deal...

In terms of resetting the function to be empty after it's defined, it would help if the method `Assignable_Proxy_Function_Impl::internal_function()` returned a *reference* to the `std::function` object (or else had a...

That's correct in C++ (e.g. to reset it; you don't need to initialize a new one), but the issue I was having was in ChaiScript...

For the record, I just added this type conversion to my own ChaiScript project, which seems to work. Not sure if in some cases there might be lifetime issues (if...

Ping... Hi @RobLoach, just wondering if there is any possibility of moving forward with resolving some pull requests, like the [VS2019 branch](https://github.com/ChaiScript/ChaiScript/pull/539)? (BTW, the most recent two PRs look like...

Thanks to you both, I'm glad to see CS getting a bit of love... (-;

@olikraus For the second comparison, it fails because `string::find()` returns an unsigned integer type (specifically of type `size_t`) -- so it can therefore never be less than zero. In your...

More or less, although I actually decided to expose something like this in C++ instead: ```c++ chai.add_global_const(chaiscript::const_var(string::npos), "string_npos"); ```