-preview=in (was: Re: const or immutable?)

Ali Çehreli acehreli at yahoo.com
Thu Sep 23 03:31:01 UTC 2021


On 9/22/21 6:29 PM, Mathias LANG wrote:

> alias cstring = const(char)[];

I've been thinking about that myself. Good to see it being used.

> - Enable `-preview=in` (with DMD >= v2.095) and pass parameters by `in`

2.094 perhaps?

   https://dlang.org/changelog/2.094.0.html#preview-in

Yeah, this meaning of 'in' makes a lot of sense to me. In fact, Adam 
mentioned 'in' as well. I can make it "standard" by recommending it in 
the book. >:)

Ali

P.S. I will respond to most other comments after digesting them a bit. :)


More information about the Digitalmars-d mailing list