-
|
Hi there, I am in the process of binding jint to my application, and am enjoying the experience. I've used the CLR interop to expose ImGUI.NET, which has methods with signatures like this: A cursory attempt to use this the naive way ( My guess is that there's no way to make this work 'out of the box', given that JS doesn't have explicit-ref semantics. I'm seeking confirmation on that before I start writing wrappers to hide the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Currently this is not possible, like you've discovered. It can become quite hard to support as under the hood the JsBoolean parameter is converted to |
Beta Was this translation helpful? Give feedback.
Currently this is not possible, like you've discovered. It can become quite hard to support as under the hood the JsBoolean parameter is converted to
bool. This would mean that Jint would need to track ref-passed parameters and then set the value back to given variable name the way it's after the function call. Probably not impossible, but can get quite hairy...