<html><body><div dir="ltr">Is this a bug? Adding the class var field changes prints 0 and without it prints 100 as expected. The class var is just a static field that isn't actually part of the record so how could it affect the memory layout?</div><div><br></div><div>type</div><div> TMyRec = record</div><div> class var z: UInt32;</div><div> x, y: UInt32;</div><div> end;</div><div><br></div><div>var</div><div> r: TMyRec;</div><div> p: pointer;</div><div>begin</div><div> r.x := 100;</div><div> p := @r;</div><div><br></div><div> writeln(PUInt32(p)^);</div><div dir="ltr">end.</div></body></html>