Search

July 19, 2021
Issues »
...f` is a "pure factory function" [1]:

----
int* f(const int* input) pure nothrow @safe...
July 18, 2021
Learn »
+1.
IMO,`strong pure` is `the outside world` has no impact on me. `Funcs` don...
July 18, 2021
Learn »
...all true:

* `array` is "strongly pure".
* `array` is a "pure factory function".
* The result of...
July 17, 2021
Learn »
...believe that `PURE.strong` is nonsense, and that `PURE.const_` already means "strongly pure".

However...
July 17, 2021
Learn »
...enum PURE : ubyte
{
    impure      = 0,    // not pure at all
    fwdref      = 1,    // it's pure, but...
July 17, 2021
Learn »
Hm, as far as I understand, "strongly pure" doesn't require `immutable` parameters. `const` should...
July 17, 2021
Learn »
...pure`' which means 'parameters are values or immutable'. To reduce code breakage, the 'strong pure...
July 17, 2021
Learn »
...pure nothrow @safe
{
    int[] output;
    foreach (element; input) output ~= element;
    return output;
}
void main() pure...
July 16, 2021
Learn »
...21 3:21 PM, Dennis wrote:

> But `pure` is no silver bullet:

Agreed. I occasionally...
July 16, 2021
Learn »
The code in question is all `@safe pure nothrow`.
115 116 117 118 119 120 121 122 123 124 125
Next ›   Last »