Re: [fpc-pascal] Overloading functions

2014-09-10 Thread leledumbo
> Now FPC could obviously do that with e.g. an overloaded := operator. But > is there any way to handle the special case of two functions, one of > which returns a dynamic array and the other the number of elements, > without having to give them different names or parameters? With the availabi

[fpc-pascal] Overloading functions

2014-09-10 Thread Mark Morgan Lloyd
My understanding is that functions cannot be overloaded based on the return type, i.e. you can't have two functions with the same name and parameters which differ only in the return type. Is there any realistic way this can be worked around? I've been reading the first few (i.e. free :-) chapt