I wish all qualifiers were revisited with an eye for simplification

Manu turkeyman at gmail.com
Tue Aug 25 01:34:17 UTC 2020


On Tue, Aug 25, 2020 at 2:15 AM Atila Neves via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> On Sunday, 2 August 2020 at 20:50:14 UTC, Andrei Alexandrescu
> wrote:
> > (Background: qualifiers were introduced following my horror
> > when I started writing D1 code and saw that strings are
> > represented as char[]. So structs with string members would
> > look like:
> >
> > [...]
>
> Nearly every time I use inout I run into problems. Something
> doesn't compile, I get annoyed, and switch to templated this. Can
> anyone tell me what inout does that templated this doesn't?
>

Generates one instance, rather than many. Is a 'hard' function; ie, can by
virtual...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20200825/130bd2ee/attachment.htm>


More information about the Digitalmars-d mailing list