comp.lang.ada
 help / color / mirror / Atom feed
* unchecked_deallocation
@ 2002-07-17 18:07 Felix Engemann
  2002-07-17 18:29 ` unchecked_deallocation Larry Hazel
  2002-07-17 21:44 ` unchecked_deallocation Jan Prazak
  0 siblings, 2 replies; 10+ messages in thread
From: Felix Engemann @ 2002-07-17 18:07 UTC (permalink / raw)


Hi all,

I'm just writing a generic double linked list package.
I want to implement a function destroy_list, wich should return null
and free the space. My question is:

is all the space freed, if i set a pointer to the first node and then free the
space with free(pointer_to_first_node)

or do i have to delete and free from node to node, in order to free all the
space ?

Thanx Felix



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Unchecked_Deallocation
@ 1998-12-01  0:00 robinsoj
  1998-12-02  0:00 ` Unchecked_Deallocation Tom Moran
  1998-12-03  0:00 ` Unchecked_Deallocation Fanni Kolchina
  0 siblings, 2 replies; 10+ messages in thread
From: robinsoj @ 1998-12-01  0:00 UTC (permalink / raw)


Has anyone ever heard of "Unchecked_Deallocation?"  If so, what is it?

--
James H. Robinson, III

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




^ permalink raw reply	[flat|nested] 10+ messages in thread
* Unchecked_Deallocation
@ 1997-10-22  0:00 Scott Barrish
  1997-10-22  0:00 ` Unchecked_Deallocation bklungle
  1997-10-22  0:00 ` Unchecked_Deallocation Anonymous
  0 siblings, 2 replies; 10+ messages in thread
From: Scott Barrish @ 1997-10-22  0:00 UTC (permalink / raw)



Ada Professionals:

According to my professor's handout's and lecture notes, I should be able
to do the following:

--Scott Barrish
--CPSC-151
--Professor P. Williams
--October 23, 1997

--First Created:  October 21, 1997 6:45pm
--Last Revised:	  October 21, 1997 6:45pm

with Ada.Text_IO;	use Ada.Text_IO;

package body Stack_Dynamic is

procedure Free is new Unchecked_Deallocation(Object => Element_Type, Name
=> Stack_Ptr);

.
.
.

However, when I goto compile in Dubug mode, the compiler complains and says
that Unchecked_Deallocation is not found.  Ingnoring future references.

I thought that Unchecked_Deallocation is a generic procedure found in
Ada.Text_IO.  If I am wrong, please help me in fixing this part ofmy code.

I thank you a head of time for your help.

Sincerely,

Scott B.

P.S.  E-mail your reply.  My news server is very slow.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-07-18  8:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17 18:07 unchecked_deallocation Felix Engemann
2002-07-17 18:29 ` unchecked_deallocation Larry Hazel
2002-07-17 21:44 ` unchecked_deallocation Jan Prazak
2002-07-18  8:13   ` unchecked_deallocation Felix Engemann
  -- strict thread matches above, loose matches on Subject: below --
1998-12-01  0:00 Unchecked_Deallocation robinsoj
1998-12-02  0:00 ` Unchecked_Deallocation Tom Moran
1998-12-03  0:00 ` Unchecked_Deallocation Fanni Kolchina
1997-10-22  0:00 Unchecked_Deallocation Scott Barrish
1997-10-22  0:00 ` Unchecked_Deallocation bklungle
1997-10-22  0:00 ` Unchecked_Deallocation Anonymous

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