[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PenguinFile



Adrian Ratnapala schrieb:
> 
> Christian Reiniger writes:
>  > ><
>  > ><Then ppfOpen () needs to be *really* overloaded - and the API would be
>  > ><unusable from plain C...
>  > ><
>  > >Not really, you would only need a single overload; one that took a
>  > >number, and one that took a string. The string version, I take it, is
>  >
>  > The thing is that C does not support function overloading at all.
> Yes it does.
>         ppfOpen(char* string);
>         ppfOpenById(int id);
> :)
> 
> But I assume this is not what you meant.

*grin* Right. The thing was about having the compiler automatically
select the correct version, i.e. C++ style "real" overloading.

	Christian