Liste des Groupes | Revenir à cl c |
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:I just wanted to get the point across that the first parameter, aka, akin to "this" in C++ is a const pointer. Shall not be modified in any way shape or form. It is as it is, so to speak:
For some reason I had a sort of a habit wrt const pointers:Why? It seems like an arbitrary choice to const qualify some pointer
>
(experimental code, no ads, raw text...)
https://pastebin.com/raw/f52a443b1
>
________________________________
/* Interfaces
____________________________________________________________________*/
#include <stddef.h>
>
>
struct object_prv_vtable {
int (*fp_destroy) (void* const);
};
>
>
struct device_prv_vtable {
int (*fp_read) (void* const, void*, size_t);
int (*fp_write) (void* const, void const*, size_t);
};
types and some pointed-to types (but never both).
The wink was meant to show my habit in basically a jestful sort of way. Some people did not seem to like it very much, even though its was just me doing my thing. I can adapt rather quickly.;^)Does the wink mean I should not take what you write seriously? If so,
please ignore my question.
Les messages affichés proviennent d'usenet.