Weird std.path API?

user1234 user1234 at 12.de
Sun Jul 7 19:18:44 UTC 2024


On Sunday, 7 July 2024 at 15:35:36 UTC, Andrey Zherikov wrote:
> On Sunday, 7 July 2024 at 14:49:52 UTC, Anonymouse wrote:
>> On Sunday, 7 July 2024 at 14:41:31 UTC, Andrey Zherikov wrote:
>>> ```d
>>> import std.path;
>>>
>>> // Error: no property `asNormaliedPath` for 
>>> `dirName("/sandbox/onlineapp.d")` of type `string`
>>> auto p = __FILE_FULL_PATH__.dirName.asNormaliedPath;
>>> ```
>>
>> `asNormalizedPath` is misspelled.
>
> My bad, sorry :)
> My blurred eyes didn't catch that

In first place I would have expected the spellcheck to find the 
error but it looks like that does not work with UFCS.

https://issues.dlang.org/show_bug.cgi?id=9997


More information about the Digitalmars-d-learn mailing list