I don't understand what you're trying to do... You already have access to a Class2 via Class1.getClass2(). Do you want some sort of fancy syntactic sugar, so you can do something like `Class2 class2 = new Class1();` instead of `Class2 class2 = new Class1().getClass2()`?
On Sat, May 2, 2015 at 8:49 AM, Akira Nakagawa <matyapir...@gmail.com> wrote: > Hi all. > I have an experience with C#, so I could do this in vala, too. > public static implicit Class2 (Class1 val) { > return val.getClass2(); > } > There is no example or reference for vala, > So how can I explicit/implicit-ly convert class type in vala? > _______________________________________________ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list