From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,20bf0d0544bba2,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-09 07:10:54 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: khostelley@yahoo.com (Kevin Hostelley) Newsgroups: comp.lang.ada Subject: Declaring subtypes Date: 9 Dec 2003 07:10:53 -0800 Organization: http://groups.google.com Message-ID: <95476e79.0312090710.68a031a4@posting.google.com> NNTP-Posting-Host: 156.77.105.122 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1070982654 14270 127.0.0.1 (9 Dec 2003 15:10:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Dec 2003 15:10:54 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3275 Date: 2003-12-09T07:10:53-08:00 List-Id: 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