From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,147f221051e5a63d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <482F19CE.7060306@obry.net> Date: Sat, 17 May 2008 19:45:50 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Maciej Sobczak Subject: Re: memory management in Ada: tedious without GC? References: <4ddef8bf-b5b1-4d7e-b75b-386cd6c8402c@l17g2000pri.googlegroups.com> <482E8A9D.5040401@obry.net> <8640a12f-da99-435f-8eb6-372e175cd5b9@z72g2000hsb.googlegroups.com> In-Reply-To: <8640a12f-da99-435f-8eb6-372e175cd5b9@z72g2000hsb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 17 May 2008 19:45:54 CEST NNTP-Posting-Host: 90.22.117.59 X-Trace: 1211046354 news.orange.fr 878 90.22.117.59:3029 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:170 Date: 2008-05-17T19:45:54+02:00 List-Id: 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 & v); > > // and then: > vector 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 = ; vector 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