www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - 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
Dec 13 2005