comp.lang.ada
 help / color / mirror / Atom feed
* Declaring subtypes
@ 2003-12-09 15:10 Kevin Hostelley
  2003-12-09 15:52 ` Georg Bauhaus
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kevin Hostelley @ 2003-12-09 15:10 UTC (permalink / raw)


I am rather new to Ada and I had a design question.  I'm working on a
web based application and I was wondering if declaring subtypes of
String for common database fields was overkill.  For example:

subtype Address_Line is String(1..60);
subtype City is String(1..40);
subtype Zip_Code is String(1..9);


I understand that Strong typing is one of the strengths of Ada but I
just don't know how far to go with it.

Thanks,

mamboking



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

end of thread, other threads:[~2003-12-10 13:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-09 15:10 Declaring subtypes Kevin Hostelley
2003-12-09 15:52 ` Georg Bauhaus
2003-12-09 17:01 ` Martin Krischik
2003-12-09 18:47 ` tmoran
2003-12-10 13:48 ` Marin David Condic

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