tango list
Robert Fraser
fraserofthenight at gmail.com
Wed Feb 27 12:51:06 PST 2008
Christopher Wright wrote:
> quest wrote:
>> hi,
>>
>> i would like to hand over some LinkSeq list to some funktions. what
>> would be function header??
>>
>>
>> void testfunc(???? lists, int bolony) { .... }
>>
>> seems like i can't use LinkSeq for the ????.
>
> // Use a list of any type of element
> void testfunc(T)(ListSeq!(T) list, int bologna) {}
>
> Unfortunately, you won't be able to put that in an interface.
Why not?
interface ResultCollector
{
void notify(Result r);
void notify(Seq!(Result) results);
Seq!(Result) getResults();
}
More information about the Digitalmars-d-learn
mailing list