From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: Ada 2005?
Date: Tue, 21 Dec 2004 06:51:22 +0000 (UTC)
Date: 2004-12-21T06:51:22+00:00 [thread overview]
Message-ID: <cq8h5a$rmv$1@hercules.btinternet.com> (raw)
In-Reply-To: <1103570622.576598.204440@f14g2000cwb.googlegroups.com>
conradwt@runbox.com wrote:
> Hi Martin, I'm not hung up on a 'class' keyword but this would make it
> clear as to what one is trying to do in the converting steps from C++
> to Ada.
I think there was plenty of debate about creating a new reserved word
'class' in the Ada9X development but 'tagged' won. I'm sure the
rationale is probably still kicking around on the net somewhere...
> Also, this was an example from one of the Ada resources and
> you'll find it at the following address:
>
> http://www.adahome.com/Ammo/Cplpl2Ada.html
> Thus, you're saying that I could have declared the functions as
> followed:
>
> function Name return String;
> function Major return Integer;
> function Minor return Integer;
Nearly but there is no implicit 'this' parameter as there is in C++, so
will still need to name it (and its type).
> Then, you're saying that I can use it as follows:
>
> aDevice : Device_Type := Devices.Create( "Test", 1, 1 );
aDevice : Device := ...;
> Put_Line( aDevice.Name );
> Put_Line( aDevice.Major );
> Put_Line( aDevice.Minor );
In Ada200Y, yes.
Cheers
-- Martin
next prev parent reply other threads:[~2004-12-21 6:51 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-18 4:27 Ada 2005? conradwt
2004-12-18 8:08 ` Martin Dowie
2004-12-20 20:06 ` conradwt
2004-12-21 6:51 ` Martin Dowie [this message]
2004-12-18 8:47 ` christov
2004-12-19 3:28 ` Randy Brukardt
2004-12-19 19:11 ` christov
2004-12-19 22:07 ` Ada User Journal (was: Re: Ada 2005?) Dirk Craeynest
2004-12-19 22:34 ` Ada User Journal Florian Weimer
2004-12-20 9:19 ` Martin Krischik
2004-12-20 11:02 ` Florian Weimer
2004-12-20 12:22 ` Thomas Hühn
2004-12-27 13:16 ` Florian Weimer
2004-12-21 0:15 ` Ada 2005? David Botton
2004-12-18 8:51 ` Martin Krischik
2004-12-18 16:03 ` Dmitry A. Kazakov
2004-12-20 18:49 ` conradwt
2004-12-20 20:10 ` Dmitry A. Kazakov
2004-12-20 23:44 ` jayessay
2004-12-21 1:26 ` Alexander E. Kopilovich
2004-12-21 8:31 ` Dmitry A. Kazakov
2004-12-21 17:24 ` jayessay
2004-12-21 8:11 ` Dmitry A. Kazakov
2004-12-21 17:10 ` jayessay
2004-12-21 17:12 ` Dmitry A. Kazakov
2004-12-21 21:42 ` jayessay
2004-12-22 8:55 ` Dmitry A. Kazakov
2004-12-22 18:02 ` jayessay
2004-12-22 19:10 ` Dmitry A. Kazakov
2004-12-23 18:09 ` jayessay
2004-12-24 9:41 ` Dmitry A. Kazakov
2004-12-27 17:09 ` jayessay
2004-12-27 19:44 ` Dmitry A. Kazakov
2004-12-27 21:51 ` Georg Bauhaus
2004-12-28 9:56 ` Dmitry A. Kazakov
2004-12-28 17:56 ` jayessay
2004-12-28 17:48 ` jayessay
2004-12-28 17:36 ` jayessay
2004-12-21 8:33 ` Martin Krischik
2004-12-21 15:34 ` jimmaureenrogers
2004-12-21 15:53 ` Martin Krischik
2004-12-22 9:34 ` Larry Kilgallen
2004-12-22 11:01 ` Martin Krischik
2004-12-22 12:52 ` Larry Kilgallen
2004-12-22 16:38 ` Martin Krischik
2004-12-23 23:05 ` conradwt
2004-12-24 9:24 ` Pascal Obry
2004-12-24 9:59 ` Martin Krischik
2004-12-18 19:31 ` Jeffrey Carter
2004-12-20 18:55 ` conradwt
2004-12-20 23:53 ` Jeffrey Carter
2004-12-21 0:25 ` David Botton
2004-12-19 3:16 ` Brian May
2004-12-20 23:38 ` jayessay
2004-12-21 21:42 ` Brian May
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox