2 overloads per function (with the original function overloads)
2 overloads per function (with the original function overloads)
PointerLike stuffnew(ref x) instead of ref xPointerLike itself a ref struct that can track its own refs



char* name = "POS" Since no sentient life has been found on Mars, the codethis is a joke, right?
points that would have been allocated for Martian imojis are hereby
allocated for this private use. These addresses are thus called
"Martians", also known as "Bogons" due to them being bogus.
PointerLikePointerLikenew(ref x)ref xref structchar* name = "POS"using static Silk.NET.INSANITY;
public class MyClass {
public void thing() {
glGenBuffer(GL_VERTEX_BUFFER);
}
}int* x = default;
{
int y;
x = &y;
}
// y is out of scope thus x's "lifetime" has been exceededSpan<int> x = default;
{
int y = default;
x = MemoryMarshal.AsSpan(ref y, 1);
}
// y is out of scope thus x's "lifetime" has been exceeded