From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Compare these two (sub)type declarations
Date: Wed, 05 Jul 2006 19:42:57 +0200
Date: 2006-07-05T19:42:57+02:00 [thread overview]
Message-ID: <4955204.riu49K6KmB@linux1.krischik.com> (raw)
In-Reply-To: 1152006378.935306.287820@m79g2000cwm.googlegroups.com
Lance wrote:
> What is the difference between these two declarations?
>
> subtype Foo is Integer;
>
> and
>
> type Bar is new Integer;
>
> In fact, what _is_ the second declaration? Would variables of type Bar
> not be allowed in expressions where Integers are expected?
Others have given you some hints. If you want the full story:
http://en.wikibooks.org/wiki/Ada_Programming/Type_System
Martin
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
prev parent reply other threads:[~2006-07-05 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 9:46 Compare these two (sub)type declarations Lance
2006-07-04 10:25 ` Ludovic Brenta
2006-07-04 20:01 ` Lance
2006-07-04 21:13 ` spam countermeasures (was: Compare these two (sub)type declarations) Björn Persson
2006-07-05 17:42 ` Martin Krischik [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