Search

September 07
Issues »
...to

---
void foo() @safe
{
    int i;
    auto ptr = &i;
}
---

which gives

---
test.d(8): Error...
September 05
DIP Ideas »
...private @system {
		int* ptr;
	}

	int* borrow() @escape(return) scope @trusted {
		return ptr;
	}
}

Wrapper acquire() {
	Wrapper...
September 04
DIP Ideas »
...int* ptr) {
	S s;
	s.field = ptr;
	// @escape(s) ptr
}
```

```d
struct Input {
	int* ptr...
September 03
DIP Ideas »
...what I take from "Error the parameter `ptr` cannot have an escape set that includes...
September 03
DIP Ideas »
...escape(__unknown) int* ptr);

scope int* ptr;
func2(ptr); // Error variable `ptr` has a strong...
September 01
Issues »
...conv;
   assert(S.init.toString.ptr != S.init.to!string.ptr);
}
```

This assert should not...
September 01
Issues »
...s, foo) == 1);

    int delegate() dg;
    dg.ptr = &s;
    dg.funcptr = &foo;
    assert(dg() == 1...
August 31
Learn »
...K key)
{
    if (auto ptr = key in aa)
        return nullable(*ptr);
    else
        return Nullable!V...
August 29
General »
...int** ptr = &value; // ptr depends upon value

int* another = move(value);
// ugh oh, ptr is...
August 26
General »
...x;
        S* s_ptr_0;
        S* s_ptr_1;
    }

S* g_ptr = null;
S* goo...
1 2 3 4 5 6 7 8
Next ›   Last »