Deprecation: std.container.array.RangeT(A) is not visible from module Size
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Sep 10 08:46:46 PDT 2017
On 09/10/2017 04:54 AM, Vino.B wrote:
> Thank you very much, as stated by you i used the auto function and now
> i am get the output without any warnings
That's because now you're taking advantage of D's type inference.
Although it doesn't cover the entire story, you may want to read about
D's Voldemort types. (Your case did not involve Voldemort types though;
in your case it was just a private symbol.)
So, you can give a name to that return value yourself:
alias DirSizeList = typeof(coSizeDirList());
> Sub Function:
Unrelated: They are all called "functions" in D.
> //Array!string MStext;
> string[][] MStext; // Getting Error on this line, while trying to
> change it to auto;
> auto MSresult = taskPool.workerLocalStorage(MStext);
Now you can use DirSizeList there:
auto MSresult = taskPool.workerLocalStorage!DirSizeList();
Ali
More information about the Digitalmars-d-learn
mailing list