J
JaSeong Ju
I would like to overload a C function. Is there any easy way to do this?
JaSeong said:I would like to overload a C function.
Is there any easy way to do this?
I would like to overload a C function. Is there any easy way to do this?
JaSeong Ju said:I would like to overload a C function. Is there any easy way to do this?
Ben Pfaff said:this?
No. C does not support function overloading.
Mabden said:You could, however, write a wrapper function that calls the normal C
function, but adds new functionality. Many people do this in calling memory
functions, for instance.
JaSeong Ju said:I would like to overload a C function. Is there any easy way to do this?
jacob navia said:lcc-win32 is a compiler that supports function overloading.
It is not a C++ compiler
Ben Pfaff said:Do you know what function overloading is?
JaSeong Ju said:I would like to overload a C function. Is there any easy way to do this?
Mabden said:What a nasty question. Of course I do.
Idiot.
JaSeong Ju said:I would like to overload a C function. Is there any easy way to do this?
Ben Pfaff said:If it supports function overloading then it isn't a C compiler
either.
JaSeong Ju said:I would like to overload a C function. Is there any easy way to do this?
Mabden said:You could, however, write a wrapper function that calls the normal C
function, but adds new functionality. Many people do this in calling memory
functions, for instance.
Peter Nilsson said:Why?! [Yes, I know Jacob's lcc was raised, but speaking more generally...]
Function overloading would require additional constraints on conforming programs using
that extension (e.g. C++ requires function prototypes), but I don't see how support for
function overloading would necessarily preclude implementation conformance.
Mabden said:What a nasty question. Of course I do.
Do YOU know what a C forum is for? Idiot.
Mabden said:What a nasty question. Of course I do. Do YOU know what a C forum is for?
Idiot.
JaSeong Ju said:I would like to overload a C function. Is there any easy way to do this?
"Peter Nilsson said:Ben Pfaff said:If it supports function overloading then it isn't a C compiler
either.
Why?! [Yes, I know Jacob's lcc was raised, but speaking more generally...]
Function overloading would require additional constraints on conforming
programs using
that extension (e.g. C++ requires function prototypes), but I don't see how
support for
function overloading would necessarily preclude implementation conformance.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.