comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Preventing Unchecked_Deallocation?
Date: Wed, 8 Feb 2012 20:22:25 -0600
Date: 2012-02-08T20:22:25-06:00	[thread overview]
Message-ID: <jgvala$vpi$1@munin.nbi.dk> (raw)
In-Reply-To: m21uq567h7.fsf@pushface.org

"Simon Wright" <simon@pushface.org> wrote in message 
news:m21uq567h7.fsf@pushface.org...
> Robert A Duff <bobduff@shell01.TheWorld.com> writes:
...
> Using limited types is one way of approaching this, but I suppose
> another would be apply conventions, such as insisting on 'in out' usage
> everywhere??? How do compiler writers deal with symbol tables?

I can't speak for others, but our records are non-limited. That makes them 
easy to copy for operations like generic instantiation and subprogram 
inheritance where you need to make a near duplicate of a part of a 
symbolable. We do have one record that is limited, and it has been a 
long-term pain to deal with.

OTOH, you'd probably not like the structure much. We didn't hide any 
significant part of the symboltable, because it didn't seem to pay -- there 
are hundreds of different values stored there, and pretty much any operation 
could use any of them. We did use some accessors, but that was solely for 
memory management reasons.

I'm not sure if we'd use the same structure if starting over today.

                                     Randy.





  parent reply	other threads:[~2012-02-09  2:22 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 23:41 Preventing Unchecked_Deallocation? Simon Belmont
2012-02-04 14:40 ` AdaMagica
2012-02-05 16:42   ` Simon Belmont
2012-02-06 12:52     ` Julian Leyh
2012-02-06 16:05       ` Adam Beneschan
2012-02-06 16:21     ` Adam Beneschan
2012-02-06 18:34       ` AdaMagica
2012-02-07  0:14       ` Simon Belmont
2012-02-07  2:19         ` Shark8
2012-02-07 16:39           ` Robert A Duff
2012-02-07 11:42         ` Gautier write-only
2012-02-07 21:11           ` Simon Belmont
2012-02-07 21:30             ` Robert A Duff
2012-02-07 22:23               ` Simon Wright
2012-02-07 23:07                 ` Robert A Duff
2012-02-08  8:43                   ` Simon Wright
2012-02-08 15:06                     ` Robert A Duff
2012-02-09  2:22                     ` Randy Brukardt [this message]
2012-02-09  7:28                       ` Simon Wright
2012-02-07 23:06               ` Alan Copeland
2012-02-07 23:10                 ` Robert A Duff
2012-02-09  2:49         ` Randy Brukardt
2012-02-09  3:39           ` Jeffrey Carter
2012-02-09 15:47             ` Adam Beneschan
2012-02-09 19:16               ` Jeffrey Carter
2012-02-09  7:37           ` Simon Wright
2012-02-10  1:08             ` Randy Brukardt
2012-02-10  7:35               ` Simon Wright
2012-02-07  6:26     ` Jeffrey Carter
2012-02-08  8:49       ` Maciej Sobczak
2012-02-08 23:40         ` BrianG
2012-02-09  2:57         ` Randy Brukardt
2012-02-09  7:13           ` Pascal Obry
2012-02-10  1:12             ` Randy Brukardt
2012-02-09  8:08           ` Maciej Sobczak
2012-02-10  1:18             ` Randy Brukardt
2012-02-07 16:27     ` Robert A Duff
replies disabled

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