Re: [Vala] How do you get from the generic, to the.....specific?
- From: Luca Bruno <lethalman88 gmail com>
- To: Matto Marjanovic <maddog mir com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How do you get from the generic, to the.....specific?
- Date: Sun, 19 Feb 2012 10:12:45 +0100
On Sun, Feb 19, 2012 at 5:32 AM, Matto Marjanovic <maddog mir com> wrote:
Are there any plans to add type bounds to Vala generics?
This would allow something like (e.g., using Java's keyword):
public int get_length<T extends string> (T val) {
return val.length;
}
Yes, but not anytime soon.
--
www.debian.org - The Universal Operating System
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]