Andrei Alexandrescu
Andrei Alexandrescu
This PR introduces a very limited v2 of the standard under the name `std.v2`. There are only very few artifacts in there. Essentially, this PR just showcases how `mismatch` can...
The refactorings involve simplifying code that was working around compiler bugs, pushing symbols from top level to where they are needed, and a few more simplifications.
This is much more useful and usable than `Fields` or `RepresentationTypeTuple`, which lose the essential information of offsets in data fields.
Version: Uncrustify_d-0.71.0_f Consider this C/C++/D code: ```d ThisIsTheReturnType thisIsTheFunctionName(string a, Doc doc, int attributes, int asd = someDefault, TypeInfo objectType = null) { return something; } ThisIsTheReturnType var = thisIsTheFunctionName(x,...
Starting small. This duplicates the implementation in https://github.com/dlang/druntime/blob/master/src/rt/typeinfo/ti_int.d. The idea is, of course, that the templated implementation will replace implementations for all scalar types. For testing purposes I restricted it...
This supersedes https://github.com/dlang/druntime/pull/2124 and previous attempts. Apologies for the override but it seemed easier to simply write this than discuss what to do over several sessions. cc @JinShil
I've redone the pure functions section to improve definitions. I'm aiming for a narrow and precise definition of strongly pure functions; following that, aggressive optimizations can be applied. cc @WalterBright...
Self-explanatory.
before: 