Talk About Network

Google





Programming > Ada > memory manageme...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 70 Topic 5707 of 6006
Post > Topic >>

memory management in Ada: tedious without GC?

by "jhc0033@[EMAIL PROTECTED] " <jhc0033@[EMAIL PROTECTED] > May 16, 2008 at 10:44 AM

I'm mostly soliciting answers from Ada programmers who know C++ RAII
well (Skip this if you use the words "C" and "C++" interchangeably,
please. Your answers will be misleading at best):

As I understood from reading the Memory Management section of
Wikibooks on Ada, Ada's memory management facilities are roughly
equivalent to

a. C++-like "new"
b. C++-like "delete"
c. Java-like "finally"
d. your implementation may or may not have GC

Did I misunderstand?

To me, this seems much, much more error-prone and tedious that C++'s
RAII approach, where you almost never have to worry about deallocation
(i.e. "b" and "c" above), even in the presence of exceptions, unless
you have GC. Besides, RAII applies to a bunch of other things, like
thread locks, database connections, files - not just memory.
 




 70 Posts in Topic:
memory management in Ada: tedious without GC?
"jhc0033@[EMAIL PROT  2008-05-16 10:44:11 
Re: memory management in Ada: tedious without GC?
Ludovic Brenta <ludovi  2008-05-16 20:56:50 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-16 13:42:15 
Re: memory management in Ada: tedious without GC?
Ivan Levashew <octagra  2008-05-17 04:45:21 
Re: memory management in Ada: tedious without GC?
"Peter C. Chapin&quo  2008-05-16 18:59:20 
Re: memory management in Ada: tedious without GC?
"Randy Brukardt"  2008-05-16 18:05:24 
Re: memory management in Ada: tedious without GC?
anon@[EMAIL PROTECTED] (  2008-05-16 22:45:00 
Re: memory management in Ada: tedious without GC?
"jhc0033@[EMAIL PROT  2008-05-16 22:24:16 
Re: memory management in Ada: tedious without GC?
Ivan Levashew <octagra  2008-05-17 14:50:57 
Re: memory management in Ada: tedious without GC?
Pascal Obry <pascal@[E  2008-05-17 09:34:53 
Re: memory management in Ada: tedious without GC?
"Bob Klungle" &  2008-05-17 15:11:00 
Re: memory management in Ada: tedious without GC?
Pascal Obry <pascal@[E  2008-05-17 17:27:13 
Re: memory management in Ada: tedious without GC?
Georg Bauhaus <see.rep  2008-05-17 18:18:32 
Re: memory management in Ada: tedious without GC?
Ole-Hjalmar Kristensen &l  2008-05-20 10:04:07 
Re: memory management in Ada: tedious without GC?
Ole-Hjalmar Kristensen &l  2008-05-20 10:01:09 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-20 12:03:13 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-17 19:23:40 
Re: memory management in Ada: tedious without GC?
Brian Drummond <brian_  2008-05-17 15:30:17 
Re: memory management in Ada: tedious without GC?
Simon Wright <simon.j.  2008-05-18 09:06:55 
Re: memory management in Ada: tedious without GC?
Brian Drummond <brian_  2008-05-19 15:40:45 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-17 09:47:37 
Re: memory management in Ada: tedious without GC?
Brian Drummond <brian_  2008-05-19 15:45:58 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-17 09:51:21 
Re: memory management in Ada: tedious without GC?
Pascal Obry <pascal@[E  2008-05-17 19:45:50 
Re: memory management in Ada: tedious without GC?
Samuel Tardieu <sam@[E  2008-05-18 00:28:20 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-18 09:03:21 
Re: memory management in Ada: tedious without GC?
"Peter C. Chapin&quo  2008-05-17 18:42:27 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-18 08:58:32 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-18 08:52:18 
Re: memory management in Ada: tedious without GC?
"jhc0033@[EMAIL PROT  2008-05-18 01:50:21 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-18 11:31:15 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-18 17:03:38 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-18 07:10:55 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-18 16:59:04 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-18 07:16:41 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-18 07:21:56 
Re: memory management in Ada: tedious without GC?
Simon Wright <simon.j.  2008-05-18 21:48:13 
Re: memory management in Ada: tedious without GC?
"jhc0033@[EMAIL PROT  2008-05-18 11:27:37 
Re: memory management in Ada: tedious without GC?
Martin Krischik <krisc  2008-05-19 12:27:31 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-18 13:51:44 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-19 10:36:04 
Re: memory management in Ada: tedious without GC?
Matthew Heaney <mheane  2008-05-18 20:44:18 
Re: memory management in Ada: tedious without GC?
Matthew Heaney <mheane  2008-05-18 20:50:48 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-19 09:55:08 
Re: memory management in Ada: tedious without GC?
Georg Bauhaus <rm.dash  2008-05-19 15:18:48 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-19 16:16:00 
Re: memory management in Ada: tedious without GC?
Robert A Duff <bobduff  2008-05-23 19:15:45 
Re: memory management in Ada: tedious without GC?
"Randy Brukardt"  2008-05-23 19:45:17 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-24 10:25:33 
Re: memory management in Ada: tedious without GC?
Robert A Duff <bobduff  2008-05-24 12:14:56 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-24 21:04:42 
Re: memory management in Ada: tedious without GC?
Robert A Duff <bobduff  2008-05-24 16:52:03 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-25 10:12:20 
Re: memory management in Ada: tedious without GC?
Robert A Duff <bobduff  2008-05-25 08:35:02 
Re: memory management in Ada: tedious without GC?
"Dmitry A. Kazakov&q  2008-05-26 10:16:46 
Re: memory management in Ada: tedious without GC?
Georg Bauhaus <see.rep  2008-05-24 21:39:32 
Re: memory management in Ada: tedious without GC?
Robert A Duff <bobduff  2008-05-24 16:45:43 
Re: memory management in Ada: tedious without GC?
Matthew Heaney <mheane  2008-05-18 21:12:49 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-19 01:35:42 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-19 01:39:04 
Re: memory management in Ada: tedious without GC?
Matthew Heaney <mheane  2008-05-19 08:11:53 
Re: memory management in Ada: tedious without GC?
Robert A Duff <bobduff  2008-05-23 19:03:28 
Re: memory management in Ada: tedious without GC?
Matthew Heaney <mheane  2008-05-19 08:37:11 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-19 14:13:06 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-19 14:21:56 
Re: memory management in Ada: tedious without GC?
Matthew Heaney <mheane  2008-05-19 16:02:43 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-20 00:42:21 
Re: memory management in Ada: tedious without GC?
jayessay <nospam@[EMAI  2008-05-20 14:01:11 
Re: memory management in Ada: tedious without GC?
Adam Beneschan <adam@[  2008-05-23 17:12:14 
Re: memory management in Ada: tedious without GC?
Maciej Sobczak <see.my  2008-05-25 04:28:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 11:04:43 PST 2009.