S
Sortie
When a function call is encountered during the compile, is any
parameter or return type checking done by the compiler?
parameter or return type checking done by the compiler?
Sortie said:When a function call is encountered during the compile, is any
parameter or return type checking done by the compiler?
Richard Heathfield said:Yes.
Yes.
Next question ...?
Eric Sosman a écrit :
This is of course wrong, since regulars play with words here to amuse
themselves misleading a person that asks a simple question.
(1) No checks can be done if there is no prototype to the arguments
being passed
(2) The return type is "int". This means that this return type will
be checked against assigning it to a structure or any other value
incompatible with an integer. That trivial check allows heathfield
and company to say "yes" (enigmatically) to demnostrate their knowledge
and to mislead the original poster.
jacob said:Eric Sosman a écrit :
This is of course wrong, since regulars play with words here to amuse
themselves misleading a person that asks a simple question.
jacob navia said:Eric Sosman a écrit :
This is of course wrong, since regulars play with words here to amuse
themselves misleading a person that asks a simple question.
(1) No checks can be done if there is no prototype to the arguments
being passed
(2) The return type is "int".
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.