comp.lang.ada
 help / color / mirror / Atom feed
From: "Daniel Sch�le" <uval@rz.uni-karlsruhe.de>
Subject: some simple questions
Date: Fri, 21 Feb 2003 23:56:39 +0100
Date: 2003-02-21T23:56:39+01:00	[thread overview]
Message-ID: <b36b5m$p0i$1@news.rz.uni-karlsruhe.de> (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





             reply	other threads:[~2003-02-21 22:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 22:56 Daniel Sch�le [this message]
2003-02-22  2:15 ` some simple questions 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
replies disabled

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