import conflicts

2015-01-18 Thread AndyC via Digitalmars-d-learn
Hi all, I'm trying to write my first actual app that'll go into production. My file starts with this set of imports: import std.stdio, std.string, std.json, std.process, std.conv, std.file, core.sys.posix.syslog, tinyredis.redis; import core.sys.posix.unistd: chdir; import core.sys.po

Re: import conflicts

2015-01-18 Thread AndyC via Digitalmars-d-learn
On Sunday, 18 January 2015 at 19:20:34 UTC, Vlad Levenfeld wrote: I get this all the time with std.array.array (I use my own array implementations, but phobos' array seems to secretly creep in everywhere). I think its got to do with that private import visibility bug (https://issues.dlang.org/

Re: Cross platform Development

2015-01-23 Thread AndyC via Digitalmars-d-learn
On Friday, 23 January 2015 at 17:32:09 UTC, seany wrote: Hello I read this page, but I still have questions : http://forum.dlang.org/thread/fzbaxwcrbztqedqgm...@forum.dlang.org#post-mailman.1142.1332716016.4860.digitalmars-d:40puremagic.com I also read this : http://stackoverflow.com/questio

Re: Link errors with curl, libevent, OpenSSL

2015-01-25 Thread AndyC via Digitalmars-d-learn
On Sunday, 25 January 2015 at 05:48:26 UTC, Vladimir Panteleev wrote: On my Ubuntu Server, I can't link any D program which uses libraries other than Phobos. Example: // import std.net.curl; import std.stdio; void main() { writeln(get("dlang.org")); } /

Re: Link errors with curl, libevent, OpenSSL

2015-01-25 Thread AndyC via Digitalmars-d-learn
On Sunday, 25 January 2015 at 15:11:33 UTC, AndyC wrote: On Sunday, 25 January 2015 at 05:48:26 UTC, Vladimir Panteleev wrote: On my Ubuntu Server, I can't link any D program which uses libraries other than Phobos. Example: // import std.net.curl; import std.stdio;

md5 return toHexString

2015-04-24 Thread AndyC via Digitalmars-d-learn
Hi All, I cannot seem to understand whats wrong with this: // main.d import std.stdio; import std.digest.md; import std.file; string md5sum(const string fname) { MD5 hash; File f = File(fname, "rb"); foreach( ubyte[] buf; f.byChunk(4096)) { hash.put(buf); } str

Re: md5 return toHexString

2015-04-24 Thread AndyC via Digitalmars-d-learn
On Friday, 24 April 2015 at 17:56:59 UTC, tcak wrote: On Friday, 24 April 2015 at 17:50:03 UTC, AndyC wrote: Hi All, I cannot seem to understand whats wrong with this: // main.d import std.stdio; import std.digest.md; import std.file; string md5sum(const string fname) { MD5 hash; File