For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2008 > Re: TRANSFER on LOGICALs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: TRANSFER on LOGICALs
glen herrmannsfeldt

2008-01-22, 7:27 pm

James Giles wrote:

(snip)

> The point is that your program can't portably make *any*
> assumptions about TRANSFERred data (other than the property
> that immediately TRANSFERring back yields the original value,
> provided the intermediate type is big enough). It's best to avoid
> TRANSFER unless nothing else works at all.


Yes. Also, INTEGER values may have padding bits that
aren't copied on assignment. Floating point values
might be normalized on assignment.

In C, copies to/from arrays of unsigned char are guaranteed
to work, otherwise the same statement applies to C.

-- glen

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com