Nick Treleaven

Results 66 issues of Nick Treleaven

Part of Issue 10488 - Allow template this parameter with static functions. Note: The test is [based on code by](https://issues.dlang.org/show_bug.cgi?id=17713) @tgehr.

Show implicit conversion, not assignment in examples. Add link to array assignment. Hide unimplemented conversions from runtime indexed slice of known length. The docs were merged but the compiler pull...

Inspired by: https://blog.petrzemek.net/2017/01/17/pros-and-cons-of-alternative-function-syntax-in-cpp/ * When using `decltype`, as then the return type is free to use parameter names too. If this is thought to be too strict, then use trailing...

Avoid CTFE unsafe cast by swapping elements of `tupleof`.

Enhancement

We can give more precise errors then. `chain` is actually mentioned in this paper (thanks @ibuclaw): https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2429r0.pdf > `chain(Ranges...)(Ranges rs)` with `Ranges = (int[], int)` must satisfy the following constraint:...

Performs `< 3n/2` comparisons, unlike the naive `< 2n`. Implemented for an input range. TODO add `alias map = a => a` parameter, once design is confirmed OK.

Fixes Issue 2753 - Cannot declare pointer to function returning ref. This token ordering is consistent with function literals: ``` function RefOrAutoRefopt Typeopt ParameterWithAttributesopt FunctionLiteralBody2 ``` https://dlang.org/spec/expression.html#function_literals See https://forum.dlang.org/post/[email protected] for...

Enhancement
Needs Rebase
stalled

…code for ThisExp Deprecate aliasing a field of a variable.

Bug Fix

Reboot of #12232.

Bug Fix
Needs Rebase
stalled