Well, you nailed three, not a bad start for a not-a-fortran hack.
C++11
introduces the unique_ptr, rvalue reference, and move semantics to address the
aliasing issue. Sort of. Complex numbers are handled pretty well, but I still
sometimes feel queasy using them compared to the bad old days of DEC
fortran.
Another bugaboo is multidimensional arrays and array slices, which
Fortran defines and handles really well. And has like, forever. There have been
various C++ template libraries that implement such with varying degrees of
efficiency, none as well as Fortran at least for primitive numeric types. I use
Template Numeric Toolkit. Others use Boost::array classes. None of them
standard. C++11 introduces the standard valarray template class which should
bring a modicum of order to the chaos.
Eventually.
Meanwhile, Fortran
lurches onward.
--- Real Programmers mangle their own memory. [ Reply to This | Parent | # ]
|