-preview=in might break code

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Oct 5 10:59:26 UTC 2020


On Monday, 5 October 2020 at 10:33:46 UTC, IGotD- wrote:
> Ouch, so this mean that how 'in' works must be a defined 
> standard that all D compilers adhere to. Also this standard 
> must be defined for each CPU architecture.

It breaks for one compiler too because of templating. If all unit 
tests only trigger ref passing, and it is used with a smaller 
template param then it will run with value passing...



More information about the Digitalmars-d mailing list