December 13, 2005 problem with .offsetof | ||||
---|---|---|---|---|
| ||||
This should compile, but doesn't: Bug.d(11): this for v needs to be type S not type Bug.C Bug.d(11): class Bug.C member v is not accessible struct S { uint v; } class C { void f() { uint t = S.v.offsetof; } } void main( char[][] a ) { } Frank |
Copyright © 1999-2021 by the D Language Foundation