Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Mike Parker via Digitalmars-d-learn
On Monday, 17 December 2018 at 06:08:58 UTC, Jani Hur wrote: Publish dates are 2014 and 2015. How much the language has changed/evolved since then and how much it will evolve in future ? So are these books relevant today and still next two years ? There haven't been any changes in the

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Jani Hur via Digitalmars-d-learn
On Sunday, 16 December 2018 at 22:02:44 UTC, bachmeier wrote: I can recommend D Cookbook https://www.packtpub.com/application-development/d-cookbook and Learning D https://www.packtpub.com/application-development/learning-d Publish dates are 2014 and 2015. How much the language has

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Ali Çehreli via Digitalmars-d-learn
On 12/16/2018 11:57 AM, Steven Schveighoffer wrote: > On 12/16/18 1:37 PM, Marko wrote: >> On Amazon The D Programming Language has good reviews but it's 8 years >> old. So is this book still relevant today? I would still enjoy reading that book but some parts do not match current D. >

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread bachmeier via Digitalmars-d-learn
On Sunday, 16 December 2018 at 18:37:15 UTC, Marko wrote: On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Would you recommend another book? PS: I am already a programmer writing mainly in C and C#. Thanks, Marko. I can

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread bauss via Digitalmars-d-learn
On Sunday, 16 December 2018 at 19:57:08 UTC, Steven Schveighoffer wrote: I hope you feel right at home here :) But I must warn you, if you're anything like me, you will hate having to go back to another language. -Steve I think that's how most people start to feel when they start using D

Re: Orphan format arguments: args[0..1]

2018-12-16 Thread Ali Çehreli via Digitalmars-d-learn
On 12/16/2018 12:00 PM, Steven Schveighoffer wrote: >> Now there is a compilation error: >> >>Orphan format arguments: args[0..1] > > Hm... maybe a runtime error? I didn't think the compiler knows to > complain about this. Sorry, it was a runtime error. (I was seeing compile time because of

Re: Orphan format arguments: args[0..1]

2018-12-16 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/15/18 7:34 PM, Ali Çehreli wrote: This one confused me until I decided to talk to a rubber ducky: import std.string; void main() {     auto s = "%s is a good number".format(42); } Fine; it works... Then the string becomes too long and I split it:     auto s = "%s is a good number but

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/16/18 1:37 PM, Marko wrote: On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Mostly, yes. And it's a pretty good book, even if it has some outdated parts. There's errata somewhere too. Would you recommend another book?

Re: Shared static this() not executed for unittest

2018-12-16 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/15/18 5:14 PM, Jonathan M Davis wrote: On Saturday, December 15, 2018 10:27:36 AM MST Neia Neutuladh via Digitalmars-d-learn wrote: On Sat, 15 Dec 2018 17:19:05 +, Timoses wrote: Running `dub test` will output: Running ./unit-test-library writeln: unittest All unit tests have been

Doubt about this book: The D Programming Language

2018-12-16 Thread Marko via Digitalmars-d-learn
On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Would you recommend another book? PS: I am already a programmer writing mainly in C and C#. Thanks, Marko.

Re: Can you move a disabled this(this) struct in to a container type if it's an rvalue?

2018-12-16 Thread Stanislav Blinov via Digitalmars-d-learn
On Sunday, 16 December 2018 at 04:02:57 UTC, Q. Schroll wrote: On Thursday, 13 December 2018 at 23:33:39 UTC, Stanislav Blinov wrote: On Thursday, 13 December 2018 at 13:17:05 UTC, aliak wrote: Ah. Is there any case where you would not want to do that when you have a T value as parameter?

Re: erlang NIF written in D?

2018-12-16 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-12-16 08:43, Karl wrote: I'm curious if it'd be possible to write erlang NIFs in D? From reading Interfacing to C, it seems like I'd need to generate a D interface file for the [not insignificant] erl_nif header, and then I'd be able to create a -shared file from D code and load it

Re: Orphan format arguments: args[0..1]

2018-12-16 Thread bauss via Digitalmars-d-learn
On Sunday, 16 December 2018 at 00:34:48 UTC, Ali Çehreli wrote: This one confused me until I decided to talk to a rubber ducky: import std.string; void main() { auto s = "%s is a good number".format(42); } Fine; it works... Then the string becomes too long and I split it: auto s =

dscanner --ctags: local variables, functions, ... are now shown in vim/neovim Tagbar

2018-12-16 Thread David via Digitalmars-d-learn
I am wondering how I could display (nested) local variables and functions in vim's tagbar (majutsushi/tagbar) using dscanner? So far I only see gloable variables, functions, ... === script.d == import std.stdio; enum globalEnum1 { A = 1, B = 2 } enum globalEnum2 { C, D }

Re: Map of functions

2018-12-16 Thread Giovanni Di Maria via Digitalmars-d-learn
Thank you very much. Great!!! Giovanni