void *

martin martin at minster.UUCP
Wed Aug 20 19:29:36 AEST 1986


In article <86900014 at haddock> karl at haddock writes:
>alice!bs (Bjarne Stroustrup) writes:
>>In addition, the draft ANSI C proposal allows uncasted assignment of a void*
>>to a non-void pointer. This, I consider to be an unnecessary weakening of C's
>>type system; in the long run it will become a rather serious nuiscance.
>
>I agree that this is a bad idea; I'm glad to hear that C++ disallows it. ...
>...
>Having said that, I'll now point out that X3J11 draft 01-May-1986 does say in
>5.5 (Common Warnings), "[An implementation may generate a warning if] an
>implicit narrowing conversion is encountered, such as the assignment of ...

I don't regard the generation of a warning as being in any way satasfactory!
You only have to look at the number of warnings that various distributed
programs generate, to realise that many people simply ignore warnings.
This is an obvious portability problem, so lets (please!) have a fatal error!



More information about the Comp.lang.c mailing list