Re: D Uniform initialization {}

2016-10-22 Thread mogu via Digitalmars-d
On Sunday, 23 October 2016 at 01:31:47 UTC, Seb wrote: On Saturday, 22 October 2016 at 21:26:53 UTC, Patric Dexheimer wrote: S[] s = [{ 1, 2 }]; Nice, did´n knew that it worked. On Friday, 21 October 2016 at 21:41:16 UTC, Daniel Kozak wrote: Because there is no need. In c++ it is disaster beca

Re: D Uniform initialization {}

2016-10-22 Thread Seb via Digitalmars-d
On Saturday, 22 October 2016 at 21:26:53 UTC, Patric Dexheimer wrote: S[] s = [{ 1, 2 }]; Nice, did´n knew that it worked. On Friday, 21 October 2016 at 21:41:16 UTC, Daniel Kozak wrote: Because there is no need. In c++ it is disaster because there is milion way how to initialize something, it

Re: D Uniform initialization {}

2016-10-22 Thread Patric Dexheimer via Digitalmars-d
S[] s = [{ 1, 2 }]; Nice, did´n knew that it worked. On Friday, 21 October 2016 at 21:41:16 UTC, Daniel Kozak wrote: Because there is no need. In c++ it is disaster because there is milion way how to initialize something, it is really hard to understand and inconsistent I never really felt l

Re: D Uniform initialization {}

2016-10-21 Thread Daniel Kozak via Digitalmars-d
Dne 21.10.2016 v 23:21 Patric Dexheimer via Digitalmars-d napsal(a): On Friday, 21 October 2016 at 19:20:25 UTC, Daniel Kozak wrote: Dne 21.10.2016 v 20:49 Patric Dexheimer via Digitalmars-d napsal(a): Quite sure that this was already discussed, but.. any chance of this on D? No (I hope so)

Re: D Uniform initialization {}

2016-10-21 Thread Patric Dexheimer via Digitalmars-d
On Friday, 21 October 2016 at 19:20:25 UTC, Daniel Kozak wrote: Dne 21.10.2016 v 20:49 Patric Dexheimer via Digitalmars-d napsal(a): Quite sure that this was already discussed, but.. any chance of this on D? No (I hope so) There are a lot of places where it should make the code clear. Can

Re: D Uniform initialization {}

2016-10-21 Thread Daniel Kozak via Digitalmars-d
Dne 21.10.2016 v 20:49 Patric Dexheimer via Digitalmars-d napsal(a): Quite sure that this was already discussed, but.. any chance of this on D? No (I hope so) There are a lot of places where it should make the code clear. Can you elaborate on this? I always have to create shorter aliases for

D Uniform initialization {}

2016-10-21 Thread Patric Dexheimer via Digitalmars-d
Quite sure that this was already discussed, but.. any chance of this on D? (one of the few things that i miss from c++) There are a lot of places where it should make the code clear. I always have to create shorter aliases for the most used structs. (which i think is awkward sometimes) I know