works for Classes yes. But if it was possible with other types, like this
in C# ? : https://msdn.microsoft.com/fr-fr/library/z5z9kes2.aspx



2015-05-04 0:22 GMT+02:00 Craig <webe...@gmail.com>:

> 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
>
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to