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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!news2.google.com!postnews.google.com!u6g2000prc.googlegroups.com!not-for-mail From: "jhc0033@gmail.com" Newsgroups: comp.lang.ada Subject: Re: memory management in Ada: tedious without GC? Date: Sun, 18 May 2008 01:50:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4ddef8bf-b5b1-4d7e-b75b-386cd6c8402c@l17g2000pri.googlegroups.com> <482E8A9D.5040401@obry.net> <8640a12f-da99-435f-8eb6-372e175cd5b9@z72g2000hsb.googlegroups.com> <482F19CE.7060306@obry.net> <87d4nkzhtn.fsf@willow.rfc1149.net> <2545491.n7xu0MFufK@linux1.krischik.com> NNTP-Posting-Host: 75.7.227.219 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1211100621 27978 127.0.0.1 (18 May 2008 08:50:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 18 May 2008 08:50:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u6g2000prc.googlegroups.com; posting-host=75.7.227.219; posting-account=ZDEUcwoAAAAfEl68GET6fODebgE-CIe2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:197 Date: 2008-05-18T01:50:21-07:00 List-Id: On May 18, 12:03 am, Martin Krischik wrote: > Samuel Tardieu wrote: > >>>>>> "Pascal" == Pascal Obry writes: > > > Pascal> AFAIK > > Pascal> int N; > > Pascal> N = ; > > Pascal> vector v(N); > > Pascal> Is not C++. > > > What do you mean? This is perfectly legal in C++. > > #include is missing for it to become "perfectly legal". This is the > typical cheat of C++ advocates - selling there standart library as > languages features. So if the C++ standard said: " is included by default", that would make C++ a better language in your opinion? > But that is unfair as vector<> can be implemented in any language including > assember. Oh, panlinguistic guru, I'd like to see you try to implement "STL" in C! I wonder if you'll go for macros or void* type casts with type sizes as explicit parameters. How will you implement automatic memory management and deep copy semantics for arbitrary user-constructed type parameters?