comp.lang.ada
 help / color / mirror / Atom feed
From: khostelley@yahoo.com (Kevin Hostelley)
Subject: Declaring subtypes
Date: 9 Dec 2003 07:10:53 -0800
Date: 2003-12-09T07:10:53-08:00	[thread overview]
Message-ID: <95476e79.0312090710.68a031a4@posting.google.com> (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



             reply	other threads:[~2003-12-09 15:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09 15:10 Kevin Hostelley [this message]
2003-12-09 15:52 ` Declaring subtypes Georg Bauhaus
2003-12-09 17:01 ` Martin Krischik
2003-12-09 18:47 ` tmoran
2003-12-10 13:48 ` Marin David Condic
replies disabled

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