Re: [Vala] How to implement cast in vala?
- From: Craig <weberc2 gmail com>
- To: Akira Nakagawa <matyapiro31 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to implement cast in vala?
- Date: Sun, 3 May 2015 17:22:58 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]