std.path.buildPath
Russel Winder via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 4 11:15:36 PDT 2017
On Sun, 2017-06-04 at 17:56 +0200, Jacob Carlborg via Digitalmars-d-
learn wrote:
> On 2017-06-04 07:44, Jesse Phillips wrote:
>
> > What is your expected behavior? Throw an exception? You can't
> > really
> > append an absolute path to another.
>
> Of course you can. I expect buildPath("/foo", "/bar") to result in
> "/foo/bar". That's how Ruby behaves.
And Python, Groovy, Java, Kotlin, Ceylon, C++, …
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170604/68c58eea/attachment.sig>
More information about the Digitalmars-d-learn
mailing list