From: Mike H <postmaster@ada-augusta.demon.co.uk>
Subject: Re: Need help for constrained type
Date: Fri, 7 Feb 2014 14:11:42 +0000
Date: 2014-02-07T14:11:42+00:00 [thread overview]
Message-ID: <cpWjMXDemO9SFw7C@ada-augusta.demon.co.uk> (raw)
In-Reply-To: 52f3c83c$0$6559$9b4e6d93@newsspool4.arcor-online.net
In message <52f3c83c$0$6559$9b4e6d93@newsspool4.arcor-online.net>, G.B.
<rm-dash-bau-haus@dash.futureapps.de> writes
>One approximation can make use of generics. The immediate
>mention of the Len with the object declaration will not be
>present. But otherwise the approximation preserves the
>"interface" of Memory_Block, except that the .Len component
>is no longer constant, and not guaranteed to be in sync with
>the length of .Usage_Info, if someone messes with it.
Cannot sync be guaranteed by placing the relevant bits and pieces as
private types within a package such that they may only be manipulated by
functions and procedures provided by that package? Or have I
misunderstood something?
B.T.W for those who have come to Ada from other places it is not always
easy to feel comfortable with the higher levels of abstraction that the
language supplies. One consequence is that not only should one not be
surprised when there seems to be little correlation between the number
of lines of source code and amount of code generated, one should also
not be surprised when any such correlation is negative.
--
The thing I like best about the Internet is that no one
knows that, in reality, I am just another old dog!
Mike
next prev parent reply other threads:[~2014-02-07 14:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 16:13 Need help for constrained type Gerd
2014-02-06 17:30 ` Niklas Holsti
2014-02-06 18:03 ` adambeneschan
2014-02-06 18:37 ` Niklas Holsti
2014-02-06 18:57 ` adambeneschan
2014-02-06 17:37 ` G.B.
2014-02-07 14:11 ` Mike H [this message]
2014-02-10 11:40 ` G.B.
2014-02-07 0:04 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox