Felix Deimel

Results 89 comments of Felix Deimel

So the reason is that under the cover it's actually a generic `Nullable`: https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1?view=net-7.0

Example of what such a parameter looks like:

Same applies to primitives btw. ie. `int?`/`Nullable`.

Partial Strategy: Add an extension method to `System.Type`: `bool IsNullableValueType(this Type type, out Type? valueType)` so that we can figure out if the targeted type is a nullable value type...

I think that once a TypeDescriptor is created for such a type, we can add conversions there which will then be used by later generation phases.

https://github.com/royalapplications/beyondnet/commit/fc54eecb55c8052e82d5f41b5a372d2530fc04b7 added support for nullable structs (no support yet for nullable primitives and enums).

@gingerbeardman Sorry, currently no time to improve IconComposer2x... I'm open to pull requests though!

@gingerbeardman If you also send a PR that contains the necessary changes in the save code I'll merge.

@gabriel-kozma That's correct. Delegates are currently not implemented in the Kotlin code generator. JNA does support mapping C function pointers though so should at least be possible to add.

@gabriel-kozma Well, best would be to implement Delegates in the Kotlin code generator. But yes, manual mapping is a good start as well. 😉 Btw: Here's the issue where we...