🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5727

Thought on an ANSI lint

#5727
From: Stephen J. Friedl
Date: Mon, 20 Feb 1989 02:39
29 lines
1564 bytes
Hi.ho folks,

     I've a thought on a feature that might be useful in an ANSI
lint and I'd like to bounce this off you folks.

     I am postulating that it would be helpful to have a lint
option that make string literals "array of const char" rather
than "array of char" and do type checking on that basis.  The
Committee apparently considered this for the language itself but
eventually rejected it (maybe some ANSI-kind-of-people could
comment on this).  Perhaps they rejected it because it would have
required that old code be retrofitted with /const/ everywhere,
and they felt this was too high a burden to place on those using
a new compiler.

     For new code, however, produced by those who think and use
/const/ all the time (like me) I think this might be a big win to
have lint check for this.

     Can anybody find anything wrong with this idea?  Discussions
here or via email would be fine.

     Steve

-- 
Stephen J. Friedl        3B2-kind-of-guy            friedl@vsi.com
V-Systems, Inc.       I speak for you only      attmail!vsi!friedl
Santa Ana, CA  USA       +1 714 545 6442    {backbones}!vsi!friedl
--------Barbara Bush on... on... No, I just can't do it...--------
Technical Details
Message-ID: <1057@vsi.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!vsi!friedl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!vsi!friedl
From: friedl@vsi.COM (Stephen J. Friedl)
Newsgroups: comp.std.c
Subject: Thought on an ANSI lint
Message-ID: <1057@vsi.COM>
Date: 20 Feb 89 02:39:34 GMT
Distribution: comp
Organization: V-Systems, Inc. -- Santa Ana, CA
Lines: 29