Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: small numerical differences in floating point result between
Rich Townsend <rhdt@barVOIDtol.udel.edu> writes:

[code elided]

> Now, both compilers I've tried this on compile and run without error
> (Lahey and Intel). Assuming such behaviour is *correct*, this means
> that -- so long as one knows its definition -- a derived type with
> private components can be ped into. Presumably, these components
> can be poked as well. Wow -- the gates to a whole new continent of
> cruft have just opened before me!

"Correct" isn't the right term here. Such behavior is allowed.
It is not guaranteed.  Derived types don't *HAVE* to be laid out
with internal structure the qay you might expect... and sometimes
they aren't.  Your odds are probably good in the particular case
you showed, but it is by no means guaranteed by the standard.

Yes, TRANSFER is one of the tools to use when you want to
hack like that.  But, in addition my comment about dragons, I
might summarize it by saying that if you have to ask, then you
probably shouldn't be doing it.  :-(

--
Richard Maine                       |  Good judgment comes from experience;
email: my first.last at org.domain  |  experience comes from bad judgment.
org: nasa, domain: gov              |        -- Mark Twain

Report this thread to moderator Post Follow-up to this message
Old Post
Richard E Maine
12-15-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:35 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.