Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:
Suppose a object pointer is 32 bits, and a function pointer is a 32-byte descriptor.I was aware of the double conversion but KT used 'a cast' so IThere is not, if it's important that it work reliably across
wondered if there was a single cast that could be used.
different compilers and different platforms.
It is odd however that function and object pointers can beFunction pointers and object pointers don't have to be the same
considered so different that even an explicit conversion
between them is deemed to be meaningless.
size, or use the same form of representation. The C standard
allows implementations where code and data live in completely
separate memories. In such cases there is no sensible way to
convert between the two kinds of pointers, because the two kinds
of addresses have no relationship to each other.
Les messages affichés proviennent d'usenet.