i can't wait until we have spans of spans/const generics/ref struct fields and all of this goes to w
i can't wait until we have spans of spans/const generics/ref struct fields and all of this goes to waste
NullPtr. basically just go over the existing manual types and see if there's anything missing from the generated ones (as this is basically what i'm doing now)just realised this is not possible also (ref struct as generics, iirc this is why I included the very vague "unless the Silk.NET team deem it inappropriate or inapplicable" language)public static implicit operator PTRMUTPTR(Span<PTRMUT> span) => new(ref span.GetPinnableReference());
still implicitpublic static implicit operator void***(PTRMUTPTR<T> ptr) => (void***)Unsafe.AsPointer(ref Unsafe.AsRef(in ptr.Ref));
this doesn't feel correct, mainly because we're not using the value ofpublic static bool operator !=(object? lh, PTRMUTPTR<T> rh) => lh == null ? (void*)rh != null : true;
lh, we're just null checkingshould bepublic MUT(ref readonly T @Ref)
ref T object== operators in the prototype that take object? only check for nullobject? operator, which fine i guess it wasn't part of the original proposal but i see no harmnullNullPtr public static implicit operator PTRMUTPTR(Span<PTRMUT> span) => new(ref span.GetPinnableReference());Silk.NET.Everything.RunGame("a twin stick shooter where the player shoots cuboids and they explode into smaller cuboids"); public static implicit operator void***(PTRMUTPTR<T> ptr) => (void***)Unsafe.AsPointer(ref Unsafe.AsRef(in ptr.Ref)); public static bool operator !=(object? lh, PTRMUTPTR<T> rh) => lh == null ? (void*)rh != null : true;lh public MUT(ref readonly T @Ref)ref Tobject==object?object?Silk.NET.Everything.RunGame();