Re: DUB project type support for Emacs Projectile

2020-06-14 Thread jmh530 via Digitalmars-d-learn
On Sunday, 14 June 2020 at 17:19:05 UTC, Jean-Louis Leroy wrote: [snip] In case you missed it, I thought you would find this interesting https://forum.dlang.org/thread/dytpsnkqnmgzniiwk...@forum.dlang.org

Re: DUB project type support for Emacs Projectile

2020-06-14 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Sunday, 14 June 2020 at 16:04:32 UTC, Jean-Louis Leroy wrote: On Sunday, 14 June 2020 at 09:11:58 UTC, Andre Pany wrote: On Saturday, 13 June 2020 at 19:27:53 UTC, Jean-Louis Leroy wrote: On Monday, 18 November 2019 at 23:06:14 UTC, Per Nordlöw wrote: Have anybody written support for DUB pro

Re: Initializing an associative array of struct

2020-06-14 Thread Denis via Digitalmars-d-learn
On Sunday, 14 June 2020 at 15:44:04 UTC, Ali Çehreli wrote: On 6/14/20 7:43 AM, Denis wrote:> @Kagamin: > > On Sunday, 14 June 2020 at 07:16:18 UTC, Kagamin wrote: >> parameters[param]=Parameter(); > > I did not realize that you can use a type on the RHS of an assignment, Note that it's not just

Re: DUB project type support for Emacs Projectile

2020-06-14 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Sunday, 14 June 2020 at 09:11:58 UTC, Andre Pany wrote: On Saturday, 13 June 2020 at 19:27:53 UTC, Jean-Louis Leroy wrote: On Monday, 18 November 2019 at 23:06:14 UTC, Per Nordlöw wrote: Have anybody written support for DUB project types in Emacs' projectile? See: https://www.projectile.m

Re: Initializing an associative array of struct

2020-06-14 Thread Ali Çehreli via Digitalmars-d-learn
On 6/14/20 7:43 AM, Denis wrote:> @Kagamin: > > On Sunday, 14 June 2020 at 07:16:18 UTC, Kagamin wrote: >> parameters[param]=Parameter(); > > I did not realize that you can use a type on the RHS of an assignment, Note that it's not just the type but with parenthesis after it. For example, Foo()

Re: Initializing an associative array of struct

2020-06-14 Thread Denis via Digitalmars-d-learn
@Kagamin: On Sunday, 14 June 2020 at 07:16:18 UTC, Kagamin wrote: parameters[param]=Parameter(); I did not realize that you can use a type on the RHS of an assignment, but it is clear and succinct. This syntax will be very useful going forward -- thank you. @Stanislav B: On Sunday, 14 Jun

Re: Why is it possible to call non-const member functions of rvalues but a compile error to modify members or rvalues directly?

2020-06-14 Thread Johannes Loher via Digitalmars-d-learn
On Saturday, 13 June 2020 at 12:47:31 UTC, Stanislav Blinov wrote: [...] The temporary exists until the end of full expression, or until the end of enclosing statement. It is simply not an lvalue for the caller, but it certainly exists, and so its interface must function. So public data memb

Re: Initializing an associative array of struct

2020-06-14 Thread Stanislav Blinov via Digitalmars-d-learn
On Sunday, 14 June 2020 at 04:36:09 UTC, Denis wrote: Note also that the defaults for id and value are fine... I would welcome a suggestion for how to initialize the keys of parameters. As there will be a couple dozen of the param string keys, a more succinct method would be preferable over

Re: DUB project type support for Emacs Projectile

2020-06-14 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 13 June 2020 at 19:27:53 UTC, Jean-Louis Leroy wrote: On Monday, 18 November 2019 at 23:06:14 UTC, Per Nordlöw wrote: Have anybody written support for DUB project types in Emacs' projectile? See: https://www.projectile.mx/en/latest/projects/#adding-custom-project-types Normally

Re: Initializing an associative array of struct

2020-06-14 Thread Kagamin via Digitalmars-d-learn
string param="aa"; parameters[param]=Parameter(); in id=parameters[param].id;

Re: Initializing an associative array of struct

2020-06-14 Thread Kagamin via Digitalmars-d-learn
that's int id=parameters[param].id;

Re: DIP1000 spec?

2020-06-14 Thread Kagamin via Digitalmars-d-learn
Logic is apparently still in flux, too early to document.