Re: [Vala] overload functions
- From: Frederik <scumm_fredo gmx net>
- To: vala-list gnome org
- Subject: Re: [Vala] overload functions
- Date: Wed, 21 May 2008 11:32:43 +0200
Martin (OpenGeoMap) schrieb:
Hi all:
Is there any trick to overload functions in Vala?.
No, because the API should be usable in C, too. Just use slightly
different method names. And you can use default values for parameters:
void method (int param1 = 5, string param2 = "x", bool param3 = false) {
...
}
then you can call
method ();
method (6);
method (6, "y");
method (6, "y", true);
Regards,
Frederik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]