From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Forcing use of "constructors"
Date: Mon, 23 Nov 2009 11:18:33 -0500
Date: 2009-11-23T11:18:33-05:00 [thread overview]
Message-ID: <wcceinpi59i.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 27db03bc-9655-4a65-a730-bcad83bfe616@h2g2000vbd.googlegroups.com
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> Inside Construct, you would normally use the extended return statement
> (ARM 6.5(2.1/2)), e.g.
Or an aggregate, "return (This => ..., That => ...);"
or a function call, "return Something(This => ..., That => ...);".
> function Construct return T is
> begin
> return Object : T do
> -- initialize some components
Or:
return Object : T := Something(This => ..., That => ...) do
... -- overwrite some components
All of the above possibilities work in the limited case.
- Bob
prev parent reply other threads:[~2009-11-23 16:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-23 11:41 Forcing use of "constructors" xorque
2009-11-23 13:38 ` Ludovic Brenta
2009-11-23 14:15 ` xorque
2009-11-23 14:20 ` Maciej Sobczak
2009-11-23 16:18 ` Robert A Duff [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