comp.lang.ada
 help / color / mirror / Atom feed
From: "martin.m.dowie" <martin.m.dowie@ntlworld.com>
Subject: Re: type declaration and storage requirements
Date: Mon, 3 Jun 2002 12:10:28 +0100
Date: 2002-06-03T12:10:28+01:00	[thread overview]
Message-ID: <J8IK8.42344$wd3.6721951@news6-win.server.ntlworld.com> (raw)
In-Reply-To: dale-09A130.10404303062002@its-aw-news.its.rmit.edu.au

"Dale Stanbrough" <dale@cs.rmit.edu.au> wrote in message
news:dale-09A130.10404303062002@its-aw-news.its.rmit.edu.au...
> In article <hfyK8.40339$wd3.6272305@news6-win.server.ntlworld.com>,
[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...






  reply	other threads:[~2002-06-03 11:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-02 21:21 type declaration and storage requirements Russ
2002-06-02 23:54 ` martin.m.dowie
2002-06-03  0:40   ` Dale Stanbrough
2002-06-03 11:10     ` martin.m.dowie [this message]
2002-06-04  2:40       ` Dale Stanbrough
2002-06-03  6:58   ` Russ
2002-06-03  7:57     ` AG
2002-06-03 11:19     ` martin.m.dowie
2002-06-03 12:40     ` Larry Kilgallen
2002-06-03 13:12     ` Gautier
2002-06-03  2:26 ` Jeffrey Carter
2002-06-04 10:35 ` Simon Wright
2002-06-04 13:04   ` Martin Dowie
2002-06-06  8:06     ` Simon Wright
2002-06-11  7:18 ` David Thompson
replies disabled

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