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,42e401e32683b965 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!z11g2000yqz.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: A new notion: stronglly-typed-by-user language Date: Fri, 16 Apr 2010 08:32:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1271431933 30583 127.0.0.1 (16 Apr 2010 15:32:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 Apr 2010 15:32:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z11g2000yqz.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:10990 Date: 2010-04-16T08:32:13-07:00 List-Id: On 16 Kwi, 09:28, "J-P. Rosen" wrote: > Do not confuse "weakly type" and "strongly type with a mean to disable > it in a controlled way when absolutely necessary". Having no safety > belts in a car is not the same thing as having belts and not putting > them (as far as the car design is concerned). > > What I find amusing (or characteristic of the C/C++ spirit) is the idea > that "if you are careful, it is good enough". So which C++ language features exactly make it not strongly typed? I agree that the C++ programmer has to be careful, but here I'm interested in the strong type safety aspect. Which constructs violate the strong type safety in C++? (Of course, I expect that such or analogous constructs do not exist in Ada.) > I generally conclude my presentations of Ada with two quotes. The first > one is from K&R, in one of the first books about C: Let's focus on recent C++ standard instead of early versions of C. -- Maciej Sobczak * http://www.inspirel.com YAMI4 - Messaging Solution for Distributed Systems http://www.inspirel.com/yami4