Re: [Vala] what does # mean in a member method formal parameter?



On Sun, May 11, 2008 at 12:47 AM, Yu Feng <rainwoodman gmail com> wrote:

You misunderstood me. I know what # is for but the cotext in which it is used
is to make possible writing generice.

Regards


Can you explain it in details? I didn't get it much.

Yu



(not tested - but should work):
class Test<T> {
    public void set(T #t1) {
        t = #t1;
    }
    private T t;
}

Here # has to have consistent behaviour with objects and others.

Regrads



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]