home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18049 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mcsun!sunic!ericom!eua.ericsson.se!euas62c36!euamts
  3. From: euamts@eua.ericsson.se (Mats Henricson)
  4. Subject: Lint++ (Re: Give me safe C++)
  5. Message-ID: <1992Dec16.120137.23124@eua.ericsson.se>
  6. Sender: news@eua.ericsson.se
  7. Nntp-Posting-Host: euas62c36.eua.ericsson.se
  8. Reply-To: euamts@eua.ericsson.se
  9. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  10. References: <724462415snx@trmphrst.demon.co.uk>
  11. Date: Wed, 16 Dec 1992 12:01:37 GMT
  12. Lines: 20
  13.  
  14. In article 724462415snx@trmphrst.demon.co.uk, nikki@trmphrst.demon.co.uk (Nikki Locke) writes:
  15. #I rather like the idea of a restricted subset of C++ which disallows 
  16. #everything dubious, provided, of course, you can use the full power of the
  17. #language occasionally (maybe in separate modules, or inside some #pragma 
  18. #section). That way I get protected from my own mistakes, but I can still 
  19. #work round any shortcomings in the language, the machine architecture or 
  20. #the design.
  21. #
  22. #How about a -safe-c++-only switch to the compiler :-)
  23.  
  24. I think a better approach is a programmable Lint++, since different users
  25. and different companies have different views of what is dangerous or not.
  26. As long as you know why Lint++ gives you all these warnings, you probably
  27. know what you are doing.
  28.  
  29. Mats Henricson
  30. Ellemtel Telecom Systems Labs
  31. Stockholm
  32. Sweden
  33.  
  34.