Liste des Groupes | Revenir à theory |
On 17/05/2025 03:55, olcott wrote:It is possible to create a C function thatOn 5/16/2025 9:44 PM, Richard Heathfield wrote:<snip>On 17/05/2025 03:24, olcott wrote:
No, not even then, for reasons I have already explained.>>>
When you dishonestly remove the context that you are
replying to fools might think that your rebuttal has merit.
The context you claim was 'dishonestly' removed is:
>
void DDD()
{
HHH(DDD);
return;
}
>
with which we are all too, too familiar.
>
The context merely shows that the only information HHH receives is a pointer to a function.
>
That's not enough for HHH to be able to do what you claim for it *within the rules of C*.
>
Unless there is also an interpreter also written in C.
Any competent C programmer would know that C programsA C interpreter (eg CH or CINT, both of which have Wiki pages, in case you're interested) doesn't simulate C code. It interprets C code. You don't pass C code to HHH in the form of a char * - "void DDD()\n{\n\tHHH(DDD);\n\treturn;\n}\n", say - to HHH(). You pass a function pointer. All HHH() can do with that pointer value is:
can be simulated by C interpreters. If they don't know
this then that are not competent.
Les messages affichés proviennent d'usenet.