Re: Nice readable code with initializer

2020-03-06 Thread Виталий Фадеев via Digitalmars-d-learn
On Thursday, 5 March 2020 at 07:01:27 UTC, Виталий Фадеев wrote: On Thursday, 5 March 2020 at 06:48:53 UTC, Виталий Фадеев wrote: Searching for beauty code implementation. Goal is: Create new object with "custom initializer". "custom initializer" - is function, executed in _ctor, in object

Re: Nice readable code with initializer

2020-03-04 Thread Виталий Фадеев via Digitalmars-d-learn
On Thursday, 5 March 2020 at 06:48:53 UTC, Виталий Фадеев wrote: Searching for beauty code implementation. Goal is: Create new object with "custom initializer". "custom initializer" - is function, executed in _ctor, in object scope. Main Goal is: "clean readable beauty code". Like this and

Nice readable code with initializer

2020-03-04 Thread Виталий Фадеев via Digitalmars-d-learn
Searching for beauty code implementation. Goal is: Create new object with "custom initializer". "custom initializer" - is function, executed in _ctor, in object scope. Main Goal is: "clean readable beauty code". Like this and better: class DataGrid : Base { this() {