isPOD is broken?
Oleg B
code.viator at gmail.com
Fri Mar 26 09:42:51 UTC 2021
Hi all!
class Foo
{
private int val;
this(int v) { val = v; }
int vv() { return val*2; }
~this() { }
}
class Bar : Foo
{
this(int v) { super(v); }
override int vv() { return val*3; }
}
pragma(msg, __traits(isPOD, Foo));
pragma(msg, __traits(isPOD, Bar));
prints
true
true
example1
https://run.dlang.io/is/Fvru18
example2
https://run.dlang.io/is/GrXdGy
May be POD is not what I mean? Bad docs?
https://dlang.org/glossary.html#pod
More information about the Digitalmars-d-learn
mailing list