[Vala] Method delegation
- From: Кутейников Дмитрий <kuteynikov gmail com>
- To: vala-list gnome org
- Subject: [Vala] Method delegation
- Date: Sun, 15 Feb 2009 00:07:17 +0300
Can you make some syntax sugar for delegation? I have lots of methods like:
class Location
{...
public uint8 getWidth()
{
return map.getWidth();
}
public uint8 getHeight()
{
return map.getHeight();
}
public uint16 getNorth()
{
return map.getNorth();
}
.......
public uint16 getEast()
{
return map.getEast();
}
public uint16 getDown()
{
return map.getDown();
}
.....
It would be nice if I could write something like this:
class Location
{
...
public uint8 getWidth() redirect map;
public uint8 getHeight() redirect map;
...
}
or even:
getWidth, getHeight redirect map;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]