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-Thread: 103376,c1400b61b3f80c1e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed.gamma.ru!Gamma.RU!feeder.news-service.com!ecngs!feeder2.ecngs.de!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Are there noticable differences in Ada acceptance by country? Date: Sat, 22 Mar 2008 07:02:38 +0000 Organization: Pushface Message-ID: References: <87d4pr6413.fsf@ludovic-brenta.org> <47e0fc15$0$89167$157c6196@dreader1.cybercity.dk> <13u2t1a2s141531@corp.supernews.com> <1fac7b25-a11f-4199-97ad-45688318e424@u69g2000hse.googlegroups.com> <1kv438li1fcvq.ox99qnglkog5.dlg@40tude.net> <9adb8bbd-5058-4406-b8b9-2ccfbc141264@u72g2000hsf.googlegroups.com> <9ada5b92-bce2-44ca-9e1e-8f5fc773cd23@d45g2000hsc.googlegroups.com> <713aa346-def1-4d02-8650-d0a652c6584d@s37g2000prg.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1206169358 4012 62.49.19.209 (22 Mar 2008 07:02:38 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 22 Mar 2008 07:02:38 +0000 (UTC) Cancel-Lock: sha1:1xXy80XHD4xhapsstmpgVpDOMpY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) Xref: g2news1.google.com comp.lang.ada:20542 Date: 2008-03-22T07:02:38+00:00 List-Id: Adam Beneschan writes: > On Mar 21, 12:21 pm, gp...@axonx.com wrote: >> On Mar 21, 12:39 pm, Simon Wright 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!