Programming pitfalls

From SourceWiki
Revision as of 16:35, 2 September 2008 by GethinWilliams (talk | contribs) (Protected "Programming pitfalls": part of pragmatic programming [edit=sysop:move=sysop])
Jump to navigation Jump to search

Programming Pitfalls: and how to avoid them

numerics

examples include odd things with floating point convergence of an algo' optimisation flags to the compiler can change he results: Lorenz

save

problems with allocate. Would need to move to a higher level, but more problems if several routines use the same name

assumed-shape array arguments

useful for information hiding but you need an explicit interface (in the calling code) to make use of them