On 14 Sep 2011, at 19:16, Fabio Luis Girardi wrote:

> I'm debugging and I have doubt: I'm using records and pointers to
> records. On WinCE wiki, the use of unaligned only shows with pointers
> to integer. And with recods, I must do
> 
> unalinged(myrec^).member
> 
> or
> 
> unalinged(myrec^.member)


If the pointer itself is stored at a potentially unaligned address, you need 
unaligned(myrec). If the record the pointer points to is stored at a 
potentially unaligned address, you need unaligned(myrec^.member). If both are 
the case, you need unaligned(unaligned(myrec)^.member)

I'm fairly certain that unaligned(myrec^).member won't do anything.


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to