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,9d929352a358ccab X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: Ada to C++ translator Date: 25 Jan 2006 12:42:40 -0800 Organization: http://groups.google.com Message-ID: <1138221760.404671.166150@z14g2000cwz.googlegroups.com> References: <1138132539.577082.206380@g43g2000cwa.googlegroups.com> <43D6B75B.A006CC1A@fakeaddress.nil> <2126868.FFs4lqbQsZ@linux1.krischik.com> NNTP-Posting-Host: 192.35.35.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1138221766 10997 127.0.0.1 (25 Jan 2006 20:42:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Jan 2006 20:42:46 +0000 (UTC) In-Reply-To: <2126868.FFs4lqbQsZ@linux1.krischik.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=192.35.35.35; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news1.google.com comp.lang.ada:2632 Date: 2006-01-25T12:42:40-08:00 List-Id: Martin Krischik wrote: > REH wrote: > > > > > "Gautier Write-only" wrote in message > > news:43D6B75B.A006CC1A@fakeaddress.nil... > >> zangnew@gmail.com wrote: > >> As Jeffrey pointed out, it is per se impossible. I can be possible > >> that also basic Ada things like unconstrained array types cannot be > >> translated without some OO overhead in C++. Any expert here ? > > > A vector can easily fit that bill. > > Vector uses heap memory > Vector has unbounded > > Remove the "easy" part. > 1) vectors only use heap if you want them to. The allocators for C++ standard containers can be easily replaced. When I use them in embedded systems, I have a deterministic allocator I used. 2) Whether or not a vector is bounded or not is immaterial. It's bounds are under the control of the user. If I need a 10 element vector, I create one. What does it matter that I could add more?