ものがたり(旧)

atsushieno.hatenablog.com に続く

GMCS throws exception when compiling struct with pointers inside generic type

もずはっく日記のスタイルをものまねしてみるテスト(w いやこれは同じくらい1日に何件もfixできないとさまにならないんだけどね…

Genericsが関係するとunsafeもNGになったりする。

public class Foo
{
unsafe private struct Node
{
private Node * left, right;
private Node * parent;
}
}
これはOK。でも
public class Foo<T>
{
unsafe private struct Node
{
private Node * left, right;
private Node * parent;
}
}
これはNG。