October 11 DIP Ideas » Re: runtime value pattern matching | |||
|---|---|---|---|
| |||
...in scala's pattern matching (which is pure gold). I'd really advise anyone to... | |||
October 04 Issues » [Issue 24795] New: emplace mutates immutable data in @safe code | |||
|---|---|---|---|
| |||
...class C
{
int n;
this(int n) pure @safe { this.n = n; }
}
const(C) obj... | |||
October 04 DIP Development » Re: Safer D first draft | |||
|---|---|---|---|
| |||
...custom array, for instance:
```D
// Currently:
@trusted pure nothrow @nogc opIndex(size_t index)
{ if... | |||
October 01 General » Re: What was so crazy about IFTI for parent agregate via ctor call ? | |||
|---|---|---|---|
| |||
...ER be pre-approved ? It's a pure semantics change, plus for now it's... | |||
September 27 DIP Ideas » Loop invariants | |||
|---|---|---|---|
| |||
...to `const` inside a `pure` immediately invoked lambda, i.e. `(() pure => ExpressionwithConst)()` because accessing globals... | |||
September 26 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
```d
ubyte parseHex(immutable char ch) pure nothrow @safe @nogc {
switch (ch) {
case '0': .. case... | |||
September 26 Learn » Integer precision of function return types | |||
|---|---|---|---|
| |||
...like
```d
uint parseHex(in char ch) pure nothrow @safe @nogc {
switch (ch) {
case '0... | |||
September 25 General » Re: Walter's talk on D backend | |||
|---|---|---|---|
| |||
...dont access global state isnt like a pure function because most of it is pure. | |||
September 22 General » Re: Walter's talk on D backend | |||
|---|---|---|---|
| |||
That would be pure coincidence because I have never seen the code for Ritchie's... | |||
September 14 Issues » [Issue 23812] ImportC: allow adding function attributes to imported C functions | |||
|---|---|---|---|
| |||
...default storage classes. Only `nothrow`, `@nogc` and `pure` are supported for now. They can be... | |||
Copyright © 1999-2021 by the D Language Foundation