Sujet : Re: Code guidelines
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.cDate : 04. Sep 2024, 13:06:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb9igh$3qa2u$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 04/09/2024 08:52, Thiago Adams wrote:
...
Perhaps the programmer knows something the compiler doesn’t?
The idea of programmer overriding what compiler knows it not new.
For instance, when casting from 'void*' to 'struct X' the programmer is overriding the type, that can be anything.
But when overriding for instance, 'struct X*' to 'struct Y*' then the programming is overriding something the compiler already knows.
The same concept of conflicting information could be applied to casts.?