Re: memory management in Ada: tedious without GC?
- From: Pascal Obry <pascal@xxxxxxxx>
- Date: Sat, 17 May 2008 19:45:50 +0200
Maciej,
Sorry for being a bit rude, but OP explicitly said that this is not
for those who use the names C and C++ interchangeably. :-)
Sorry for being a bit rude but...
float norm(const vector<float> & v);
// and then:
vector<float> v(100);
is simpler written as:
float v[100];
and the point was about a constraint not known at compile time.
AFAIK
int N;
N = <value computed at runtime>;
vector<float> v(N);
Is not C++. And this was only a simple example for the OP. I'm talking about all objects whose constraint are not known at compile time.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
.
- Follow-Ups:
- Re: memory management in Ada: tedious without GC?
- From: Peter C. Chapin
- Re: memory management in Ada: tedious without GC?
- From: Samuel Tardieu
- Re: memory management in Ada: tedious without GC?
- References:
- memory management in Ada: tedious without GC?
- From: jhc0033@xxxxxxxxx
- Re: memory management in Ada: tedious without GC?
- From: Pascal Obry
- Re: memory management in Ada: tedious without GC?
- From: Maciej Sobczak
- memory management in Ada: tedious without GC?
- Prev by Date: Re: Question about arrays and no. of elements
- Next by Date: Re: rant (Re: Ada featured in Doctor Dobb's Journal )
- Previous by thread: Re: memory management in Ada: tedious without GC?
- Next by thread: Re: memory management in Ada: tedious without GC?
- Index(es):
Relevant Pages
|
Loading