[net.lang.c] Retraction of question about casts and pointers

jr@fortune.UUCP (11/18/83)

Hello again.  I posted an article a few days ago, asking whether using a cast
in an initializer is portable.  In it, I said that my LINT says it's OK.  Well,
I stand corrected.  I reread the LINT documentation, discovered the "-c" option
("complain about casts with questionable portability"), and ran "lint -c"
against my code.  LINT complains.  Oh well.

In the immortal words of Emily Latella, "Never mind."
-- 
John Rogers - CompuServe: 70140,213 - UUCP: fortune!jr - MCI Mail: jrhpp

guido@mcvax.UUCP (Guido van Rossum) (11/23/83)

Doesn't lint complain about ANY cast under the -c option except of
conversions between the arithmetic types (int, char, float and their
short, unsigned and/or long variants)?
    My opinion is that casts in initializers are as valid as anywhere
in expressions; the only restrictions on initializers is that they be
computable at load time (given a conventional loader, that is!).

While I'm on the subject:
I would love to have a -p option which checked portability to V7
Unix (8 char identifiers, 7 char externals).  I don't believe in
6-characters one-case externals; but I do believe in PDP-11's
(We run 4.2 BSD.)