digitalmars.D.learn - Can D perform tilde expansion in paths?
- Grzegorz Adam Hankiewicz (7/7) Dec 28 2005 I'm trying to replicate the following python code under D:
- Walter Bright (4/11) Dec 28 2005 At the moment, it isn't supported in std.path, though it should be. Woul...
- Thomas Kuehne (34/47) Dec 29 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Grzegorz Adam Hankiewicz (18/26) Dec 29 2005 I don't see on the web page any instructions/guidelines with regards
- Walter Bright (4/9) Jan 01 2006 This should help: www.digitalmars.com/d/contributions.html
- Grzegorz Adam Hankiewicz (4/8) Jan 02 2006 So there's no public repository? You are the only one in charge of
- Walter Bright (3/11) Jan 03 2006 You can post diffs here, or email them to me.
I'm trying to replicate the following python code under D: In [1]: import os In [2]: os.path.expanduser("~/test") Out[2]: '/home/gradha/test' I searched phobos' std.conv, std.file, std.path, std.string and std.system, but haven't found anything useful there (unless I missed it) related to tilde expansion. How would I do the above in D?
Dec 28 2005
"Grzegorz Adam Hankiewicz" <gradhanews ya.com> wrote in message news:pan.2005.12.28.20.46.18.638574 ya.com...I'm trying to replicate the following python code under D: In [1]: import os In [2]: os.path.expanduser("~/test") Out[2]: '/home/gradha/test' I searched phobos' std.conv, std.file, std.path, std.string and std.system, but haven't found anything useful there (unless I missed it) related to tilde expansion. How would I do the above in D?At the moment, it isn't supported in std.path, though it should be. Would you care to write it?
Dec 28 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Walter Bright schrieb am 2005-12-29:"Grzegorz Adam Hankiewicz" <gradhanews ya.com> wrote in message news:pan.2005.12.28.20.46.18.638574 ya.com...code for the Linux/BSD version below: License: public domain std.path.sep[0])){ Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDtCG93w+/yD4P9tIRAkiiAJkBRwHItL3Mx5oudh5HOlNuO7BuxgCfZLsd I4jgKqsgF1p6aaRfUCp1TZs= =gGiE -----END PGP SIGNATURE-----I'm trying to replicate the following python code under D: In [1]: import os In [2]: os.path.expanduser("~/test") Out[2]: '/home/gradha/test' I searched phobos' std.conv, std.file, std.path, std.string and std.system, but haven't found anything useful there (unless I missed it) related to tilde expansion. How would I do the above in D?At the moment, it isn't supported in std.path, though it should be. Would you care to write it?
Dec 29 2005
El Wed, 28 Dec 2005 17:30:16 -0800, Walter Bright escribió:I don't see on the web page any instructions/guidelines with regards to contributing code. Do you have a public repository with source code or should I make patches against the sources I got with the dmd compiler? From license.txt: If you send any messages to Digital Mars, on either the Digital Mars newsgroups, the Digital Mars mailing list, or via email, you agree not to make any claims of intellectual property rights over the contents of those messages. So, by posting a diff on this newsgroup implementing the feature would I have assigned copyright to you at the very moment allowing you to do what you want with it, or is something else required? What does the license mean by intellectual property rights (see http://www.gnu.org/philosophy/not-ipr.xhtml)? I guess copyright. What's up with those unittest blocks in the source (I presume I would add code to src/phobos/std/path.d)? I've gone again through the documentation and couldn't find much info about them.In [1]: import os In [2]: os.path.expanduser("~/test") Out[2]: '/home/gradha/test' [...] How would I do the above in D?At the moment, it isn't supported in std.path, though it should be. Would you care to write it?
Dec 29 2005
"Grzegorz Adam Hankiewicz" <gradhanews ya.com> wrote in message news:pan.2005.12.29.17.32.02.228378 ya.com...I don't see on the web page any instructions/guidelines with regards to contributing code.This should help: www.digitalmars.com/d/contributions.htmlWhat's up with those unittest blocks in the source (I presume I would add code to src/phobos/std/path.d)? I've gone again through the documentation and couldn't find much info about them.They contain the test code for the function.
Jan 01 2006
El Sun, 01 Jan 2006 19:42:08 -0800, Walter Bright escribió:So there's no public repository? You are the only one in charge of the code? I send whole files when I want to make a few changes here and there? To this newsgroup? To you personally?I don't see on the web page any instructions/guidelines with regards to contributing code.This should help: www.digitalmars.com/d/contributions.html
Jan 02 2006
"Grzegorz Adam Hankiewicz" <gradhanews ya.com> wrote in message news:pan.2006.01.02.19.34.52.727423 ya.com...El Sun, 01 Jan 2006 19:42:08 -0800, Walter Bright escribió:You can post diffs here, or email them to me.So there's no public repository? You are the only one in charge of the code? I send whole files when I want to make a few changes here and there? To this newsgroup? To you personally?I don't see on the web page any instructions/guidelines with regards to contributing code.This should help: www.digitalmars.com/d/contributions.html
Jan 03 2006