How does one correct shadowing (hidden by) errors?

bearophile bearophileHUGS at lycos.com
Sat Jul 23 03:49:52 PDT 2011


Tyro[a.c.edwards]:

> [3] imagelist.d(22): Error: class 
> dfl.imagelist.ImageList.ImageCollection use of 
> dfl.imagelist.ImageList.ImageCollection.ListWrapArray!(Image,_images,_adding,_added,_blankListCallback,_removed,false,false,false).insert(int 
> index, Image value) hidden by ImageCollection is deprecated
> 
> Now I know I can bypass this with the -d switch but I'm more interested 
> in fixing the problem than bypassing it.

There is a trick based on explicit alias to avoid those errors. I'd like the idea of using this alias to be present in that error message...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list