comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Problem with generic package
Date: Wed, 16 Apr 2014 17:31:59 -0500
Date: 2014-04-16T17:31:59-05:00	[thread overview]
Message-ID: <lin0d0$ukg$1@loke.gir.dk> (raw)
In-Reply-To: dJJMtxAMKvTTFwdN@ada-augusta.demon.co.uk

"Mike H" <postmaster@ada-augusta.demon.co.uk> wrote in message 
news:dJJMtxAMKvTTFwdN@ada-augusta.demon.co.uk...
> Laurent  writes
>>If I have a big generic package but I need only one function from it
>>but for different types. I have to instantiate the package once for every 
>>type.
>>Which means that there will be a lot of memory allocated for
>>unused things? Or is the compiler smart enough to cut the unused
>>parts off?
>>
> Ada has been around since the 1980s. Always assume that the compiler
> writers are smaller than you are until contrary evidence suggests
> otherwise

I think you probably meant "smarter" rather than "smaller" in the above. 
Otherwise, I think you are making an unsupportable statement (although it 
might have been true in my specific case when Janus/Ada was created, not so 
much anymore ;-).

                       Randy.




  reply	other threads:[~2014-04-16 22:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 18:26 Problem with generic package Laurent
2014-04-15 19:36 ` Adam Beneschan
2014-04-15 19:44 ` Adam Beneschan
2014-04-15 20:12   ` Laurent
2014-04-15 20:37     ` Adam Beneschan
2014-04-15 20:43     ` Eryndlia Mavourneen
2014-04-15 20:47       ` Eryndlia Mavourneen
2014-04-15 21:28     ` Georg Bauhaus
2014-04-15 20:41 ` Simon Wright
2014-04-15 21:12   ` Laurent
2014-04-15 21:27     ` Adam Beneschan
2014-04-15 21:58       ` Laurent
2014-04-15 22:03         ` Adam Beneschan
2014-04-16  6:03         ` Georg Bauhaus
2014-04-16 20:37           ` Laurent
2014-04-16 21:13             ` Mike H
2014-04-16 22:31               ` Randy Brukardt [this message]
2014-04-16 23:06               ` Jeffrey Carter
2014-04-15 22:14     ` Simon Wright
2014-04-16 18:49       ` Laurent
replies disabled

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