Re: [Vala] overload tricks



Martin (OPENGeoMap) wrote:
3))) OVERLOAD TYPES OF PARAMETERS

int find(int colum, table A, int value) int find(int colum, table A, long value)
int find(int colum, table A, string value)
How can we find a value in table if we have different kinds of column types.
Perhaps here we donĀ“t have any solution, or perhaps using pointers.

Why don't you call these methods find_int(...), find_long(...), and
find_string(...) ? I don't see any need for method overloading.


Regards,

Frederik



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