comp.lang.ada
 help / color / mirror / Atom feed
* some simple questions
@ 2003-02-21 22:56 Daniel Sch�le
  2003-02-22  2:15 ` David C. Hoos, Sr.
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Daniel Sch�le @ 2003-02-21 22:56 UTC (permalink / raw)


Hi all

I am learning Ada on doing
I have found some small examples on web and
now I'm trying to put the mosaic stones together

my questions are

given
    type pint is access integer;
    pi: pint:=new integer;

how do I delete the allocated object?
free(pi);    --doesn't work
(I'm pretty sure Ada doesn't have Garabge Collector)

is there a syntax available to initialize allocated object (like in C++)?
int * pi=new int(0);
now I am doing that this way
pi.all:=0;

what is the proper way to assure that pointer points to valid object?

and last one
what's "std::system("clear");" translated to Ada
(OS Linux)

sorry if it's faq

Thanks

Daniel





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

end of thread, other threads:[~2003-02-22 18:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21 22:56 some simple questions Daniel Sch�le
2003-02-22  2:15 ` David C. Hoos, Sr.
2003-02-22  6:29   ` tmoran
2003-02-22 11:22 ` Preben Randhol
2003-02-22 11:57 ` chris.danx
2003-02-22 16:15 ` Steve
2003-02-22 18:18   ` Jeffrey Carter

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