comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Are there noticable differences in Ada acceptance by country?
Date: Sat, 22 Mar 2008 07:02:38 +0000
Date: 2008-03-22T07:02:38+00:00	[thread overview]
Message-ID: <m2bq57b5rl.fsf@mac.com> (raw)
In-Reply-To: 713aa346-def1-4d02-8650-d0a652c6584d@s37g2000prg.googlegroups.com

Adam Beneschan <adam@irvine.com> writes:

> On Mar 21, 12:21 pm, gp...@axonx.com wrote:
>> On Mar 21, 12:39 pm, Simon Wright <simon.j.wri...@mac.com> wrote:
>>
>> > gp...@axonx.com writes:
>> > > From my own C experience: using code from different sources X and Y
>> > > coordinates in function calls were in different order: foo(x,y);
>> > > boo(height, width), etc. Easy to overlook.
>>
>> > That was my point (I expect I failed to make it properly): if you use
>> > a record for Coordinate, your chance of getting the components the
>> > wrong way round is hugely reduced, and I don't think the added value
>> > of making the H & V components different _types_ is worth the added
>> > cost.
>>
>> Is there any runtime cost of using new type if no range is defined?
>
> Very unlikely, I think.  I think the type of "cost" Simon was talking
> about was the added burden (on both writer and reader) of additional
> type conversions cluttering up the code, when (in this case) they
> probably accomplish very little in the way of preventing programmer
> errors.

That was it, precisely: thanks, Adam!



  reply	other threads:[~2008-03-22  7:02 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-18 19:08 Are there noticable differences in Ada acceptance by country? Mike Silva
2008-03-18 20:41 ` Pascal Obry
2008-03-18 22:58   ` Phaedrus
2008-03-18 22:25     ` Mike Silva
2008-03-18 22:50 ` Ludovic Brenta
2008-03-19 11:42   ` Thomas
2008-03-19 12:09     ` Ludovic Brenta
2008-03-19 12:51       ` framefritti
2008-03-20  4:37         ` gpriv
2008-03-19 12:16     ` Ludovic Brenta
2008-03-19 19:04       ` Tero Koskinen
2008-03-20  8:57         ` Jean-Pierre Rosen
2008-03-25 18:02           ` Tero Koskinen
2008-03-25 19:57             ` Gautier
2008-03-19 19:55     ` svaa
2008-03-19 21:14       ` Phaedrus
2008-03-20  4:52         ` gpriv
2008-03-20 20:22           ` Simon Wright
2008-03-20 20:48             ` Dmitry A. Kazakov
2008-03-20 22:17               ` Simon Wright
2008-03-20 22:59                 ` gpriv
2008-03-21  1:54                   ` tmoran
2008-03-21  4:16                   ` Jeffrey R. Carter
2008-03-21 16:41                     ` Simon Wright
2008-03-21 19:15                     ` gpriv
2008-03-22 14:00                       ` Maciej Sobczak
2008-03-21 16:39                   ` Simon Wright
2008-03-21 19:21                     ` gpriv
2008-03-21 21:11                       ` Adam Beneschan
2008-03-22  7:02                         ` Simon Wright [this message]
2008-03-24 18:01                           ` gpriv
2008-03-21  7:52                 ` Dmitry A. Kazakov
2008-03-22 17:16                   ` Subtypes to represent coordinate charts Eric Hughes
2008-03-21 16:44                 ` Are there noticable differences in Ada acceptance by country? Simon Wright
2008-03-20 21:17             ` gpriv
2008-03-20  1:34       ` Ivan Levashew
2008-03-19  7:42 ` Thomas
2008-03-19 10:35   ` Peter C. Chapin
2008-03-19 21:21     ` Phaedrus
     [not found]       ` <13u3vq728nidu3b@corp.supernews.com>
2008-03-31  4:27         ` David Thompson
2008-03-31  5:40           ` DScott
replies disabled

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