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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aaee47ff04b98ae5 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!postnews1.google.com!not-for-mail From: aek@vib.usr.pu.ru (Alexander Kopilovitch) Newsgroups: comp.lang.ada Subject: Re: "Ravenscar-like" profile for C/C++ Date: 14 May 2004 19:27:53 -0700 Organization: http://groups.google.com Message-ID: References: <1082964421.KuB1viW3U1@linux1.krischik.com> <2fvai0F2fcp5U1@uni-berlin.de> NNTP-Posting-Host: 213.33.245.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1084588073 1065 127.0.0.1 (15 May 2004 02:27:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 15 May 2004 02:27:53 +0000 (UTC) Xref: controlnews3.google.com comp.lang.ada:600 Date: 2004-05-14T19:27:53-07:00 List-Id: Peter Amey wrote: > > if they had plans for a C++ version and they told they had spent > > plenty time thinking about how one could achieve something > > worthwhile for C++ and similar to SPARK but they just couldn't > > think of anything! > > Your memory serves you well! I don't think things have changed that > much. My personal view is that any such subset, if it did exist, would > be so restrictive and unnatural to typical C++ users that they would > find it unacceptable. Persuading a potential Ada user of the merits of > SPARK is a much easier proposition because they have already taken > several steps down the early error detection route. How about SPARK-classes for C++? I mean regular C++ classes, but with attribute SPARK (in GCC you can relatively easily define such additional attributes for classes, it will look something like __SPARK__), which tells that the class conforms with SPARK-imposed restrictions. In other words, SPARK in C++ can be applied for individual classes, which can be mixed in a program (and even in an individual source file) with other (non-SPARK) classes. Perhaps many C++ programmers will find this approach acceptable, they may perceive it as reasonable and useful compromise. (And there will be nothing heretic in that - even in SPARK applications for Ada it may happen that some packages are for SPARK examination, while others bypass SPARK for some reasons). Alexander Kopilovich aek@vib.usr.pu.ru Saint-Petersburg Russia