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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ef0074ec236ba6e3 X-Google-Attributes: gid109fba,public X-Google-Thread: 1108a1,ef0074ec236ba6e3 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-Thread: 108717,ef0074ec236ba6e3 X-Google-Attributes: gid108717,public X-Google-Thread: 1014db,ef0074ec236ba6e3 X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1994-12-08 16:43:51 PST Path: bga.com!news.sprintlink.net!pipex!sunsite.doc.ic.ac.uk!nntp0.brunel.ac.uk!strath-cs!st-and!ajry From: ajry@st-andrews.ac.uk (Alistair James Robert Young) Newsgroups: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Subject: Re: Why don't large companies use Ada? Date: 9 Dec 1994 00:07:25 GMT Organization: University Of St. Andrews Message-ID: <3c873t$lut@calvin.st-and.ac.uk> References: <1994Nov29.154220.27952@cognos.com> <3blinp$8dm@gnat.cs.nyu.edu> NNTP-Posting-Host: langs.st-andrews.ac.uk Xref: bga.com comp.lang.ada:8434 comp.lang.c:33945 comp.programming:5721 comp.lang.c++:40226 comp.object:9628 Date: 1994-12-09T00:07:25+00:00 List-Id: In article , James Kanze US/ESC 60/3/141 #40763 wrote: > >I might also point out that used correctly, C++ has relatively strict >type checking. (When discussing languages, it is important to know >what is being compared to what. In most of my work, the alternative >to C++ is C, so I have become somewhat of a C++ fan.) >-- I'd agree that strict type-checking is a good thing, in that it can prevent the many nasty errors that result from getting it wrong manually. However, in some cases, it can be a nuisance. To quote a specific example, I am in the throes of learning C++ m'self, and have a problem using the OS-specific header files with C++. These header files use a type PSZ to pass strings to functions. This type (pointer to string terminated by zero) is exactly the same as a char *, but the compiler refuses to acknowledge this, forcing me to use three or four typecasts in every OS call. Strict type-checking's all very well, but you need to be able to turn it off for specific cases. BTW, if anyone knows a way to do this for PSZ/char *, I'd really appreciate it! Alistair -------------------------------------------------------------------------- Alistair Young - Arkane Systems Software Development & PC Consultancy The opinions above are my company's, because I OWN it! [Development for OS/2 only!] Contact: ajry@st-and.ac.uk "Time flies like an arrow, fruit flies like a banana" - Groucho Marx GAT/CS/C/S d++ H s++:- g+ !p+ !au a- w+++ v+++ C++++ O++++$ P+ E+++ N+++ W--- M-- !V -po+(++) Y+ t+ R++ tv b+++ D++ e+ u** h--- f+ r++ n+ y? PGP key fingerprint = 5C 27 43 25 6B 32 4D 6E E7 69 EC 7B 77 46 13 92 finger ajry@st-and.ac.uk for full public key - encrypted mail welcome