develooper Front page | perl.perl5.porters | Postings from November 2011

Re: Changing lvalue substr with negative offsets

Thread Previous
From:
Zefram
Date:
November 27, 2011 15:11
Subject:
Re: Changing lvalue substr with negative offsets
Message ID:
20111127231106.GU11210@lake.fysh.org
Father Chrysostomos wrote:
>I have a question about alignment issues: Am I right in thinking that,
>due to the way alignment works, adding a char to the end of this struct
>won't increase the size?

Won't in practice on current architectures.  The C standard doesn't
make any guarantee, though.  You can rely on it for optimisation, not
for correctness.

-zefram

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About