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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f1dddd3318e056d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-03 04:10:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newspeer1-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "martin.m.dowie" Newsgroups: comp.lang.ada References: Subject: Re: type declaration and storage requirements X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Mon, 3 Jun 2002 12:10:28 +0100 NNTP-Posting-Host: 213.104.121.73 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1023102633 213.104.121.73 (Mon, 03 Jun 2002 12:10:33 BST) NNTP-Posting-Date: Mon, 03 Jun 2002 12:10:33 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:25247 Date: 2002-06-03T12:10:28+01:00 List-Id: "Dale Stanbrough" wrote in message news:dale-09A130.10404303062002@its-aw-news.its.rmit.edu.au... > In article , [snip] > I'm not sure if i've got the wrong end of the stick here, but it seems > to me that it -is- a language issue, because the Ada designers have > deemed to put it -into- the language. Sorry, could have been clearer. IDD's are language independent was what I was driving at. > You can argue about whether it is the right decision (and you seem to > be arguing against that). I would disagree - for some languages it makes > sense to go to the trouble to include this information, as it may make > writing portable programs easier. No - I totally want be be able to control underlying representation when I'm defining messages that must go over particular interfaces (e.g. ethernet, 1553, etc). But for types that are solely for use to the internals of my program 99 times out of a 100 I don't care, provided that I've defined my 'digits' or 'delta' or 'ranges' correctly. I will admit that I use record representations less and less as the years go by and just do explicit byte array => internal representations by hand (with the help of a few generics). I've always found this area to be one of the most troublesome as far as portability goes...