Re: Reinstalled Mac

2016-09-28 Thread David Nadlinger via Digitalmars-d-learn
On Thursday, 29 September 2016 at 01:33:00 UTC, Joel wrote: Oops, I got confused and installed with homebrew. I was going to try DVM. Jacob is also the author of DVM, so he might be a bit biased. ;) I've had good experiences using Homebrew, although you sometimes have to wait a day or three

Re: Reinstalled Mac

2016-09-28 Thread Joel via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 09:34:46 UTC, Jacob Carlborg wrote: On 2016-09-28 10:18, Joel wrote: I've got my Mac reinstalled. I haven't installed D (dmd) yet. I would like to hear what people think. I'm thinking using home brew. And install the latest Code X. You need Xcode and I

Re: Macintosh text file with invalid line breaks are created

2016-09-28 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 16:53:24 UTC, Vladimir Panteleev wrote: On Wednesday, 28 September 2016 at 06:52:51 UTC, Andre Pany wrote: Since the file is opened in text mode (which is the default), the C runtime automatically translates the single \n to a \r\n pair when writing the

Re: Problem parsing IPv4/IPv6 addresses with std.socket.parseAddress

2016-09-28 Thread Dsciple via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 16:49:54 UTC, Vladimir Panteleev wrote: On Wednesday, 28 September 2016 at 15:34:56 UTC, Dsciple wrote: I don't understand what prevents such function (in turn calling some OS-level C function) from doing its job at compile time too. Guess it's a very

Re: Problem parsing IPv4/IPv6 addresses with std.socket.parseAddress

2016-09-28 Thread Vladimir Panteleev via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 15:34:56 UTC, Dsciple wrote: I don't understand what prevents such function (in turn calling some OS-level C function) from doing its job at compile time too. Guess it's a very challanging thing to do at compile-time, or should I open an issue with the

Re: Problem parsing IPv4/IPv6 addresses with std.socket.parseAddress

2016-09-28 Thread Dsciple via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 09:56:06 UTC, Marc Schütz wrote: You could solve the problem as you suggested by moving the initializations into a constructor, but if your default values are only ever IPs (i.e., no hostname resolution necessary), you could also add an additional function

Re: Reinstalled Mac

2016-09-28 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 09:34:23 UTC, Mike Parker wrote: Use the DMD installer instead on dlang.org Any particular reason? I've been using homebrew for it. I like the simple command line update. Not really. I didn't know it was up-to-date. Las time I tried it wasn't up-to-date

Re: Problem parsing IPv4/IPv6 addresses with std.socket.parseAddress

2016-09-28 Thread Marc Schütz via Digitalmars-d-learn
On Tuesday, 27 September 2016 at 14:57:26 UTC, Dsciple wrote: struct ConfigParams { // ... // Define configuration parameters' static default fields static immutable BindAddresses defaultBindAddresses = BindAddresses([ BindAddress("192.168.2.10") ]); // ... } Yepp, that's

Re: Reinstalled Mac

2016-09-28 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 09:15:15 UTC, Guillaume Piolat wrote: On Wednesday, 28 September 2016 at 08:18:40 UTC, Joel wrote: I'm thinking using home brew. Use the DMD installer instead on dlang.org Any particular reason? I've been using homebrew for it. I like the simple command

Re: Reinstalled Mac

2016-09-28 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 28 September 2016 at 08:18:40 UTC, Joel wrote: I'm thinking using home brew. Use the DMD installer instead on dlang.org

Reinstalled Mac

2016-09-28 Thread Joel via Digitalmars-d-learn
I've got my Mac reinstalled. I haven't installed D (dmd) yet. I would like to hear what people think. I'm thinking using home brew. And install the latest Code X.

Re: Is TDPL an accurate description of the D language today?

2016-09-28 Thread Mark via Digitalmars-d-learn
OK. Thanks, Steve.

Macintosh text file with invalid line breaks are created

2016-09-28 Thread Andre Pany via Digitalmars-d-learn
Hi, following application creates a text file with strange content: void writeTextFile(string filePath, string text) { import std.stdio: File; auto f = File(filePath, "w"); f.write(text); f.close(); } void main() { import std.ascii: newline;