std.path.getName(): Screwy by design?
Daniel Gibson
metalcaedes at gmail.com
Tue Mar 1 07:39:54 PST 2011
Am 01.03.2011 16:38, schrieb Kagamin:
> Nick Sabalausky Wrote:
>
>> or just an extentionless file named ".bashrc"? (I know unix doesn't
>> typically have a concept of file extension, it's all just part of the name,
>> but unix programs will often care about the extension portion of a
>> filename.)
>
> .Net treats it as a nameless file with extension.
.Net is designed for windows, obviously.
The right thing to do is to treat a dot at the beginning differently and
in all other cases define everything behind the last dot as the extension.
Cheers,
- Daniel
More information about the Digitalmars-d
mailing list