Re: memory management



There is no automatic deallocation of memory when an
access object goes out of scope, unless the
designated object is a controlled type.

----- Original Message ----- From: "alex goldman" <hello@xxxxxxxx>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@xxxxxxxxxxxxxx>
Sent: May 25, 2005 7:57 PM
Subject: memory management



As I understood from reading the Ada tutorial for C/C++ programmers,
"access" is essentially like C++ smart pointer, except that you don't need
to do anything to dereference it.

How will the following work:

Record A contains "access" to record B; record B contains "access" to record A.

If I create an instance of one of them with "new", will it be destroyed when
"access" to it goes out of scope?

_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@xxxxxxxxxxxxxx
http://www.ada-france.org/mailman/listinfo/comp.lang.ada


.



Relevant Pages

  • RE: Memory Usage - HelpSvc
    ... It indicates that the memory usage exceed the alert counter. ... Microsoft CSS Online Newsgroup Support ... newsgroups so that they can be resolved in an efficient and timely manner. ...
    (microsoft.public.windows.server.sbs)
  • Re: Usenet Provider and Webspace
    ... :I was happy with my Supernews service from Plusnet until last week Giganews ... local News *server* on a box with less memory than you have now. ... My PC is 5 years old and using OE6 I am only downloading headers but 300,000 headers seems to be more than it can bear. ... Using OE I download and catch up all my 53 newsgroups once a day. ...
    (soc.culture.scottish)
  • Re: Usenet Provider and Webspace
    ... :I was happy with my Supernews service from Plusnet until last week Giganews ... local News *server* on a box with less memory than you have now. ... My PC is 5 years old and using OE6 I am only downloading headers but 300,000 headers seems to be more than it can bear. ... Using OE I download and catch up all my 53 newsgroups once a day. ...
    (soc.culture.scottish)
  • Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3?
    ... You write complete nonsense in four newsgroups, ... If you manually allocate memory, ... pretty much have memory bugs, ... This is good illustration of the point - GC is harmful. ...
    (comp.programming)
  • Re: Another basic pointer question.
    ... to testDoublePtr and printf and see what happens: ... the intervening printf will cause the memory to ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)