Re: [Vala] How to implement cast in vala?
- From: yannick inizan <inizan yannick gmail com>
- To: Craig <weberc2 gmail com>
- Cc: Vala <vala-list gnome org>
- Subject: Re: [Vala] How to implement cast in vala?
- Date: Mon, 4 May 2015 00:33:22 +0200
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 <weberc2 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 <matyapiro31 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]