(j3.2006) same types
Thu Nov 1 17:15:06 EDT 2007
On Thursday 01 November 2007 13:50, Bill Long wrote:
> But, is this really intended to be standard conforming?
Yes. As proof, consider BIND(C) types. There is nothing prohibiting them from
having default initialization. Yet on the C side they don't. In fact, I
recall we argued about this not too long ago.
As Richard explained this some time ago, default initialization is something
that is not visible "from the outside". The caller of sub cannot tell whether
sub used default initialization or explicit assignments, or whatever, to get
the return value it did. In this sense, default initialization is a tool
(like calling a routine to set the values) and not necessarily a property of
the type itself.
All IMVHO. I certainly lack historical knowledge on this...
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ LLNL
High Performance Computational Materials Science and Chemistry
E-mail: donev1 at llnl.gov
Phone: (925) 424-6816 Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
More information about the J3