[Vala] operators overload
- From: "Matías De la Puente" <mfpuente ar gmail com>
- To: vala-list gnome org
- Subject: [Vala] operators overload
- Date: Thu, 15 May 2008 02:28:50 -0300
hi again,
vala, will include operators overload like in c#?
example:
static public Vector operator+ (Vector v1, Vector v2)
{
return new Vector (v1.x+v2.x, v1.y+v2.y);
}
...
...
Vector a = new Vector(3, 2);
Vector b = new Vector(4, 6);
Vector c;
c = a +b;
Matias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]