JakobOvrum

Results 77 comments of JakobOvrum

I think I intended `registerType` to do this job, but I got side-tracked by working on pushing the static interface. Maybe the same function can be overloaded to take a...

LuaD will support passing structs by reference, through the same mechanism as class instances (i.e. member functions use `:` and whatnot). The problem is how to best present that option....

For a debug build, it's `libluad-d.a`. For a release build, it's just `libluad.a`. However, when built with Dub, it's always just `libluad` due to technical limitations. Maybe a better solution...

I posted some implementation concerns in line comments. I like the Lua-agnostic attribute names and I think the `@NoScript` and `@ScriptRename` functionality is sound, but I wonder if `@ScriptAffix` is...

> Also, I feel 'Script' in the attribute name is pretty superfluous. Why should it be there? > And why would 'Script' be better than 'Lua'? This is a very...

> I see no reason why the binding to lua or python would be identical. Scripting languages are so wildly different, why would you expect such a clean mapping that...

Anonymous functions and (non-static) nested functions should behave exactly the same - they are both delegates, and they both produce closures when that delegate is escaped. Maybe your second example...

Indeed, (non-static) member functions have a different delegate context. I think maybe the fix would be to change `GC.addRoot(udata);` with `GC.addRange(udata, T.sizeof);` - I think currently it could be missing...

Recently eliminated a lot of dynamic memory allocations, but `@nogc` remains unattainable because of exceptions.

Could you show some example code? I'm not entirely sure I fully understand your situation. I think you might be looking for the [variableReturn function](https://jakobovrum.github.io/LuaD/luad.conversions.functions.html#variableReturn)?