Message from discussion Type extension and initialization of parent types
From: Jason Blevins <jrble...@sdf.lonestar.org>
Subject: Re: Type extension and initialization of parent types
Organization: Duke University
User-Agent: slrn/pre1.0.0-18 (Linux)
Date: Thu, 22 Apr 2010 16:17:50 -0400
X-Trace: news.sunsite.dk DXC=;T54el;F^E^gcbniiOP=_RYSB=nbEKnk[\PN=j50c2:QI4P?dDggX9_edQ?8\]RQ=W4\dbSET^Y[8O7QOb2j0]ki8VLX_LCcR9^P=l41RQYQ
On 2010-04-22, Richard Maine <nos...@see.signature> wrote:
> Jason Blevins <jrble...@sdf.lonestar.org> wrote:
>> Is there any way in Fortran 2003 to initialize the components of the
>> parent type when declaring an extended type? An old version of John
>> Reid's summary of Fortran 2003 features (N1507) indicates
>> that something like this might be possible:
> I didn't recall that feature in the first place. I suppose it might have
> been in some proposal; must have been a pretty early one.
Probably so: the earlier (N1507) version of that paper was still
referring to "Fortran 2000."
> I know of no way to override the parent default initialization with a
> different default initialization.
I suspected there might not be. Thanks for confirming.
> Do note the word "default", which is important here.
Yes, my question was about _default_ initialization. Although I knew
the difference in practice, the terminology makes much more sense
after your clarification.
Ph.D. Candidate, Department of Economics, Duke University