comp.lang.ada
 help / color / mirror / Atom feed
* Compare these two (sub)type declarations
@ 2006-07-04  9:46 Lance
  2006-07-04 10:25 ` Ludovic Brenta
  2006-07-05 17:42 ` Compare these two (sub)type declarations Martin Krischik
  0 siblings, 2 replies; 5+ messages in thread
From: Lance @ 2006-07-04  9:46 UTC (permalink / raw)


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?


Jerry




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-05 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` Compare these two (sub)type declarations Martin Krischik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox