comp.lang.ada
 help / color / mirror / Atom feed
* subtype of enumeration type
@ 2006-03-20 13:31 Maciej Sobczak
  2006-03-20 14:26 ` Larry Kilgallen
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Maciej Sobczak @ 2006-03-20 13:31 UTC (permalink / raw)


Consider this:

    type Day is (Mon, Tue, Wed, Thu, Fri, Sat, Sun);

and the following standard example:

    subtype Weekday is Day range Mon .. Fri;

Now imagine that in some country children don't have to go to school on 
Wednesdays, they go there only Monday, Tuesday, Thursday and Friday.

I want to say it in Ada.

    subtype Schoolday is Day <what goes here?>;


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



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

end of thread, other threads:[~2006-03-22  1:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-20 13:31 subtype of enumeration type Maciej Sobczak
2006-03-20 14:26 ` Larry Kilgallen
2006-03-20 15:18   ` Maciej Sobczak
2006-03-20 15:37 ` Robert A Duff
2006-03-20 20:29 ` Björn Persson
2006-03-20 21:41 ` Jeffrey R. Carter
2006-03-21  8:37   ` subtypes and preconditions (was: subtype of enumeration type) Peter Amey
2006-03-21 17:42     ` subtypes and preconditions Jeffrey R. Carter
2006-03-21 19:00       ` Georg Bauhaus
2006-03-22  1:54         ` Jeffrey R. Carter

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