baseName(path).startsWith(something)

Peter Alexander peter.alexander.au at gmail.com
Thu Jan 9 14:08:19 PST 2014


On Thursday, 9 January 2014 at 21:17:33 UTC, Vladimir Panteleev 
wrote:
> On Thursday, 9 January 2014 at 21:01:05 UTC, Martin Nowak wrote:
>>> if (path.baseName().startsWith(something))
>>>   doThis();
>>>
>> But how do speak that out in your head?
>
> It sounds OK if you use possessive for noun properties: "If 
> path's base name starts with something, do this".

If read it as "if the path base name starts with something", 
which makes sense (at least to me!)


More information about the Digitalmars-d mailing list