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;
    p**ublic uint8 getHeight() redirect map;
...
}

*or even:

 *getWidth, **getHeight** **redirect map;*
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to