comp.lang.ada
 help / color / mirror / Atom feed
From: Tomek Wa kuski <tomek.walkuski@gmail.com>
Subject: Re: "Ada Gems": Constructor functions
Date: Wed, 12 Sep 2007 07:39:31 -0000
Date: 2007-09-12T07:39:31+00:00	[thread overview]
Message-ID: <1189582771.755063.63050@k79g2000hse.googlegroups.com> (raw)
In-Reply-To: <1189546433.646201.242950@e34g2000pro.googlegroups.com>

On 11 Wrz, 23:33, Anh Vo <anhvofrc...@gmail.com> wrote:
> One interesting observation, if the return statement is
> qualified as shown below, it is compiled on Windows, too.
>
>   return Object'(Name => To_Unbounded_String (Name));
>
This compiles on Windows and also on Gentoo box with gnat-
gpl-4.1.3.2007 (which is in fact GNAT GPL 2007 from AdaCore).

This also works:

return New_Object : Object do
    New_Object.Name := To_Unbounded_String (Name);
end return;

Mystery solved? :) So... bug must persist in Ada Gems article :)

Tomek




      reply	other threads:[~2007-09-12  7:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 18:10 "Ada Gems": Constructor functions Tomek Wałkuski
2007-09-05 22:47 ` Jeffrey R. Carter
     [not found]   ` <1189064716.528979.201170@19g2000hsx.googlegroups.com>
2007-09-06  7:54     ` Tomek Wa kuski
2007-09-06 13:55       ` Robert A Duff
2007-09-06 14:12         ` Tomek Wa kuski
2007-09-06  0:04 ` Robert A Duff
2007-09-06 16:16 ` anon
2007-09-07 10:38   ` Tomek Wa kuski
2007-09-07 15:17     ` Robert A Duff
2007-09-08 18:20       ` Tomek Wa kuski
2007-09-10 13:46         ` Tomek Wa kuski
2007-09-11  7:51           ` Georg Bauhaus
2007-09-11 10:26             ` Tomek Wa kuski
2007-09-11 21:33             ` Anh Vo
2007-09-12  7:39               ` Tomek Wa kuski [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