DirEntry isDir not working?

Maxim Fomin maxim at maxim-fomin.ru
Mon Feb 25 05:45:30 PST 2013


On Monday, 25 February 2013 at 12:34:05 UTC, monarch_dodra wrote:
> On Monday, 25 February 2013 at 08:20:31 UTC, Josh wrote:
>>
>> [SNIP]
>>
>> Josh
>
> Seems like a massive bug in "DirEntry": It doesn't have a 
> constructor, meaning anybody using "DirEntry" will actually get 
> DirEntry.init.
>
> The workaround is to use the function "dirEntry", which returns 
> an initialized DirEntry.

but see http://d.puremagic.com/issues/show_bug.cgi?id=8563


More information about the Digitalmars-d-learn mailing list