Path as an object in std.path

Walter Bright newshound2 at digitalmars.com
Thu Jun 6 10:54:39 PDT 2013


On 6/6/2013 10:47 AM, Andrei Alexandrescu wrote:
> On 6/6/13 1:13 PM, Steven Schveighoffer wrote:
>>> buildNormalizedPath(s1) == buildNormalizedPath(s2);
>>>
>>> and
>>>
>>> p1 == p2;
>>
>> This can be done without allocations.
>
> Interesting. "Show me the code!"

Not necessary - it is trivially obvious to the most casual observer!

(You just use the same logic that normalizes the path to do the comparison.)



More information about the Digitalmars-d mailing list