<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Matias Ezequiel Vara Larsen via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 29. März 2023, 00:27:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
On Mon, Mar 27, 2023 at 09:35:38PM +0200, Jonas Maebe via fpc-pascal wrote:<br>
> On 27/03/2023 21:25, denisgolovan via fpc-pascal wrote:<br>
> <br>
> > But it's still not possible to attach alignment to type itself instead of variable, right?<br>
> <br>
> It is possible (<a href="https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/test/talignrec1.pp" rel="noreferrer noreferrer" target="_blank">https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/test/talignrec1.pp</a>),<br>
> but it is subject to the same limitations when declaring variables of those<br>
> types.<br>
> <br>
<br>
Thanks, this is what I was looking for, however, when the type is<br>
defined as an array, only the [0] element is aligned. I was expecting<br>
that each element in the array would be aligned.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No, array types are defined as never having padding between the elements. You need to make sure that the element is appropriately sized then. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>