comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: style Q: type .. is new String;
Date: 08 Jan 2004 21:58:20 -0500
Date: 2004-01-08T21:58:20-05:00	[thread overview]
Message-ID: <wccsmipx1yr.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: damLb.1900$I06.12540@attbi_s01

tmoran@acm.org writes:

> Though I create new types regularly for numeric variables, 

Me, too.

>...I've only
> rarely used other than the standard String type.  That saves doing type
> conversions, but it would be nice to have strong type checking help me
> detect errors.  Do other folks use new String types a lot and find it
> works out well?

Only rarely.  For example, I have a message template type, which is a
string, but wants some stuff "filled in" at run time.  Otherwise, a
String is a String.  Integers, on the other hand, "measure" different
things -- it's useful to have the index of this-array be a different
type from the index of that-array.

- Bob



  parent reply	other threads:[~2004-01-09  2:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09  0:00 style Q: type .. is new String; tmoran
2004-01-09  2:31 ` Stephen Leake
2004-01-09  2:58 ` Robert A Duff [this message]
2004-01-09 16:10 ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
2004-01-09 17:17 amado.alves
     [not found] <468D78E4EE5C6A4093A4C00F29DF513D04B82B19@VS2.hdi.tvcabo>
2004-01-09 17:34 ` Duncan Sands
2004-01-09 18:17 amado.alves
replies disabled

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