Deprecation: std.container.array.RangeT(A) is not visible from module Size

Vino.B via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 8 11:21:30 PDT 2017


On Friday, 8 September 2017 at 16:58:35 UTC, Ali Çehreli wrote:
> On 09/08/2017 07:48 AM, Vino.B wrote:
>
> > if
> > std.container.array.RangeT(A) is deprecated
>
> No, it's not deprecated. It's a private symbol of the 
> std.container.array module. You shouldn't be able to use it at 
> all. The fact that you are able to use it is due to a bug fix, 
> which hasn't been fully activated yet. The bug is fixed but the 
> compiler is still letting you use the symbol until the bug is 
> effective in some future date.
>
> In summary, you should not refer to RangeT in your code at all. 
> Use auto return types if you have to but I'm happy to see that 
> you've solved the remaining issues.
>
> >                 subdirTotalGB = (subdirTotal/1024/1024); {
> Subdir ~= d;
>
> That should be MB, right? Kilo, mega, giga, etc.
>
> Ali

Hi Ali,

  Sure, will wait for the fix, and for the line "subdirTotalGB = 
(subdirTotal/1024/1024); {
Subdir ~= d;" that's ok the issue  was rising from the line 
"string[][]" as you know std.container array do not have the 
capability of multi dimensional array hence i need to change it 
back from "Tuple!((Array!string), (Array!string)) Result;" which 
was causing the issue, will try it once again once the issue is 
fixed. Once again thank you very much for you help. One final 
help on how to print the below output , just in case if this 
issue is fixed in next release,

Output:
[Tuple!string("C:\\Temp\\sapnas2\\BACKUP\\dir1"),  
Tuple!string("C:\\Temp\\sapnas2\\BACKUP\\DND5")][34, 4]

Required output:
C:\\Temp\\sapnas2\\BACKUP\\dir1                 34
C:\\Temp\\sapnas2\\BACKUP\\DND5                  4

From,
Vino.B




More information about the Digitalmars-d-learn mailing list