Re: Preparing for the New DIP Process

2024-01-22 Thread Danilo via Digitalmars-d-announce
On Monday, 22 January 2024 at 23:28:40 UTC, Jonathan M Davis wrote: Of course, ultimately, different programmers have different preferences, and none of us are going to be happy about everything in any language. So, of course, there are going to be some folks who are unhappy with how D defines

Re: Would this be a useful construct to add to D? auto for constructor call.

2024-01-22 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, January 22, 2024 11:05:28 PM MST Chris Katko via Digitalmars-d- announce wrote: > ```D > class dataGridLayerView{ > int t; > this(int _t){ >t = _t; >} > } > > class myClass{ > dataGridLayerView dataGrid; > > this() >{ >dataGrid = new

Would this be a useful construct to add to D? auto for constructor call.

2024-01-22 Thread Chris Katko via Digitalmars-d-announce
```D class dataGridLayerView{ int t; this(int _t){ t = _t; } } class myClass{ dataGridLayerView dataGrid; this() { dataGrid = new auto(15); // <--- new // instead of dataGrid = new dataGridLayerView(15); } } ``` Because it seems,

Re: Preparing for the New DIP Process

2024-01-22 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, January 22, 2024 4:01:54 PM MST Walter Bright via Digitalmars-d- announce wrote: > On 1/21/2024 3:51 AM, zjh wrote: > > When you need `friend`, You can put them all in one module. > > Sometimes, when `multiple classes` are closely related and independent, > > `class level privacy`

Re: Preparing for the New DIP Process

2024-01-22 Thread Walter Bright via Digitalmars-d-announce
On 1/21/2024 3:51 AM, zjh wrote: When you need `friend`, You can put them all in one module. Sometimes, when `multiple classes` are closely related and independent, `class level privacy` becomes very important. No one wants , someone from outside may secretly steal money from your home. D

Re: Preparing for the New DIP Process

2024-01-22 Thread Walter Bright via Digitalmars-d-announce
On 1/21/2024 3:46 AM, Dom DiSc wrote: `class-private` is superfluous cruft. You can very easy live without it. And it has only no side effects, if it is implemented without `friend`s. But without this misfeature it is incomplete. Therefor it was decided not to implement it. It would be ok for

Re: Redub: A faster build system promising 90% compatibility with dub

2024-01-22 Thread Hipreme via Digitalmars-d-announce
On Saturday, 20 January 2024 at 16:03:52 UTC, ryuukk_ wrote: On Saturday, 20 January 2024 at 15:25:35 UTC, Renato wrote: On Saturday, 20 January 2024 at 14:14:10 UTC, Hipreme wrote: - I have tried contributing to dub's project on parallelization, I waste 1 week trying that and could not get