[phobos] What's the status of listDir/listdir ?
Dmitry Olshansky
dmitry.olsh at gmail.com
Thu Jun 9 13:31:24 PDT 2011
Next question in the row - what to do with a mission to swap std.regexp
to std.regex?
Right now, std.file listDir is the only one function in the whole Phobos
that uses std.regexp.
I managed to set it on the std.regex rails, but making soft deprecation
warning appear at the right time without breaking alias listdir
->listDir is a messy thing. Now it seems like a bad idea to update
already deprecated API ;)
So, should I make all of listdir/listDir templated so that they show
deprecation warnings when used?
> Both listDir and listdir should go.
>
> Andrei
>
> On 6/9/11 3:15 PM, Dmitry Olshansky wrote:
>> As it stands now listdir is deprecated in favor of listDir, according to
>> one part of Ddoc for std.file:
>> $(RED Scheduled for deprecation in August 2011. Please use $(D listDir)
>> instead.
>>
>> Another part says:
>> $(RED Scheduled for deprecation in August 2011.
>> Please use $(D dirEntries) instead.
>>
>> So what is the most relevant?
>>
--
Dmitry Olshansky
More information about the phobos
mailing list