Nick Treleaven

Results 134 comments of Nick Treleaven

> 0012 should simply mean 12 (0x0C) D code should not change the meaning of valid C code without a good enough reason. Otherwise porting C code to D may...

@maxhaton If bitfields are here to stay it would be good to merge this after adding any of the diff suggestions as you see fit. After that I can make...

> Unlike the naive version done where? https://dlang.org/phobos/std_algorithm_iteration.html#fold > // Compute minimum and maximum at the same time > writeln(arr.fold!(min, max)); // tuple(1, 5)

@PetarKirov I am trying to avoid breaking anyone's code unnecessarily, which is why e.g. I made `chain` require at least one input range, in case there are functions called `chain`...

It might be good to require new features to the compiler to come with spec docs. The existing features can be documented over time (0.2 seems too ambitious and no...

> #define DOUBLE(x) (x) + (x) Maybe it would be enough to ignore macros that reuse an argument?

Although this solves the `ref` problem, there is another syntax ambiguity with `scope` if we want to extend dip1000. See: https://forum.dlang.org/post/[email protected] That problem is not solved by this pull alone....

@WalterBright OK. I wanted to make it an obsolete feature instead of deprecated, but then `-wo` got neutered (https://github.com/dlang/dmd/pull/15612). I don't understand why that was done. So do we need...

I think generally people would not really opt-in to a preview switch which only detects this. Given that we no longer have a switch to detect all obsoleted/bug-prone code, I...