Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Type extension and initialization of parent types

Path: g2news1.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Newsgroups: comp.lang.fortran
From: Jason Blevins <jrble...@sdf.lonestar.org>
Subject: Re: Type extension and initialization of parent types
References: <7kf6a7-prr.ln1@roark.xbeta.org>
 <1jhcl5j.7b4jab1x4zs8wN%nospam@see.signature>
Organization: Duke University
User-Agent: slrn/pre1.0.0-18 (Linux)
Date: Thu, 22 Apr 2010 16:17:50 -0400
Message-ID: <egn6a7-edt.ln1@roark.xbeta.org>
Lines: 31
NNTP-Posting-Host: 75.178.9.182
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
X-Complaints-To: staff@sunsite.dk

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:
>>
>> [snip]
>
> 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.

-- 
Jason Blevins
Ph.D. Candidate, Department of Economics, Duke University
http://jblevins.org/