Re: [Vala] overload tricks
- From: Frederik <scumm_fredo gmx net>
- To: vala-list gnome org
- Subject: Re: [Vala] overload tricks
- Date: Sun, 08 Jun 2008 23:38:54 +0200
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]