-preview=in might break code

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Oct 3 15:42:54 UTC 2020


On Saturday, 3 October 2020 at 00:35:24 UTC, Guillaume Piolat 
wrote:
> On Friday, 2 October 2020 at 23:03:49 UTC, Ola Fosheim Grøstad 
> wrote:
>>
>> I have no issues with undefined behaviour as long as it is 
>> easy to understand and explain, like requiring 'in' params to 
>> be nonaliased in the function body. It has to be easy to grok 
>> and remember.
>
> Or the even simpler rule: don't use 'in' :)

Actually, if "in" implies non-aliased you might want to use it 
for DSP buffers because modern backend can then more easily 
generate SIMD code when the buffer is non-aliased. :-)



More information about the Digitalmars-d mailing list