You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's somehow not mentioned above, but parameterless constructors are coming to C# 10 so that solves the main reason I hadn't actually done this yet. Julien Couvreur confirmed they should land in 2022p3: dotnet/roslyn#54359 (comment)
Right now Biohazrd emits constructors and destructors as normal instance methods, they both act as if they would for placement new.
This leads to somewhat clunky usage for allocating objects from C#. For example:
Will generate something like:
"Proper" usage of this type in a stack-allocated context looks like this:
Ideally we'd like it to be able to look like this:
Other things we should ideally support:
Other things to ponder:
The text was updated successfully, but these errors were encountered: