<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>In my opinion class field reordering is a great idea I often wished.<br/></div><div>When I need a definitive layout, I always use PACKED.<br/></div><div>Unfortunately PACKED is not allowed on all suitable places; there should be packed set/array/record/object/class.<br/></div><div>Furthermore there should be pseudo-fields/pragmas for packed structures which force an ad-hoc-alignment, e.g.:<br/></div><div><br/></div><div>type t=packed record<br/></div><div>  ...<br/></div><div>  align(4)<br/></div><div>  ...<br/></div><div>  end;<br/></div><div><br/></div><div>The align pragma should force the following field to begin at an address which is divisible by its argument; the argument should be from the set [1,2,4,8,16].<br/></div><div>There are other places where an align pragma makes sense.<br/></div><div><br/></div><div>The whole discussion centers about dirty hacks to get access to hidden fields which IMHO should be avoided at all cost. The most sensible action is to change all needed fields from private to protected. This is the reason why I almost never use private in my programs - one never knows.<br/></div></div>  <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td style="font-family:verdana; font-size:12px; line-height:17px;border-top:1px solid #000000">Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.   <br><a href="https://produkte.web.de/freemail_mobile_startseite/"><b>https://produkte.web.de/freemail_mobile_startseite/</b></a></td></tr></table>
</body></html>