Re: [Vala] How do you get from the generic, to the.....specific?



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]