[Cs3] Regarding function signatures

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Jan 20 14:51:55 EST 2022


Sam Francis wrote:
> I believe you asked me to email you about my intimidating conviction that
> function signatures do not include the return type. My reasoning was that
> function signatures are used by compiler resolution to disambiguate between
> different functions with the same name, and the return type is not used in that
> resolution, since if two functions have the same name and parameters, but
> different return types, and that function name is called without using the
> return value, the compiler can?t resolve which function to call.

Well, let us agree to agree. A classic term for a function signature
indeed does not include the return type since it is not used in
function overloading. I fixed the slides to reflect that. Meanwhile,
the issues is a lot more complicated these days. Here is a discussion
on stackoverflow.

  https://stackoverflow.com/questions/290038/is-the-return-type-part-of-the-function-signature

Thanks,
--
Mikhail


More information about the cs3 mailing list