Re: how to make interface with return auto

2017-04-03 Thread Kagamin via Digitalmars-d-learn
Or if you want to completely abstract it: https://forum.dlang.org/post/iqxkelatusfocfotp...@forum.dlang.org

Re: how to make interface with return auto

2017-04-03 Thread Andrea Fontana via Digitalmars-d-learn
On Monday, 3 April 2017 at 12:42:02 UTC, Eko Wahyudin wrote: I know it's imposible. is there's a way if i want to create an interface that have method with return type value is equals with return type of std.palallelism.task eg. interface IWorker{ auto activate(); //on implementation clas

how to make interface with return auto

2017-04-03 Thread Eko Wahyudin via Digitalmars-d-learn
I know it's imposible. is there's a way if i want to create an interface that have method with return type value is equals with return type of std.palallelism.task eg. interface IWorker{ auto activate(); //on implementation class activate return std.parallelism.task } What is the replac