From: "Peter C. Chapin" <pchapin@sover.net>
Subject: Re: Another question about controlled types.
Date: Sat, 09 Feb 2008 18:41:42 -0500
Date: 2008-02-09T18:41:42-05:00 [thread overview]
Message-ID: <47ae3a34$0$32511$4d3efbfe@news.sover.net> (raw)
In-Reply-To: <eeprj.23080$9j6.1361@attbi_s22>
Jeffrey R. Carter wrote:
> Here the full view is limited. That is the difference.
Ah!
> To return a limited value, you now need to either return an aggregate or
> use the extended return statement:
>
> return Some_Type'(Ada.Finalization.Limited_Controlled with Component => I);
>
> or
>
> return Result : Some_Type do
> Result.Component := I;
> end return;
Cool! I actually understand that. :-)
Thanks a lot.
Peter
prev parent reply other threads:[~2008-02-09 23:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-09 20:57 Another question about controlled types Peter C. Chapin
2008-02-09 21:50 ` Jeffrey R. Carter
2008-02-09 23:41 ` Peter C. Chapin [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox