September 07 Issues » [Issue 24750] escaping sliced stack arrays not detected | |||
|---|---|---|---|
| |||
...to
---
void foo() @safe
{
int i;
auto ptr = &i;
}
---
which gives
---
test.d(8): Error... | |||
September 05 DIP Ideas » Re: Escape Analysis & Owner Escape Analysis | |||
|---|---|---|---|
| |||
...private @system {
int* ptr;
}
int* borrow() @escape(return) scope @trusted {
return ptr;
}
}
Wrapper acquire() {
Wrapper... | |||
September 04 DIP Ideas » Re: Escape Analysis & Owner Escape Analysis | |||
|---|---|---|---|
| |||
...int* ptr) {
S s;
s.field = ptr;
// @escape(s) ptr
}
```
```d
struct Input {
int* ptr... | |||
September 03 DIP Ideas » Re: Escape Analysis & Owner Escape Analysis | |||
|---|---|---|---|
| |||
...what I take from "Error the parameter `ptr` cannot have an escape set that includes... | |||
September 03 DIP Ideas » Re: Escape Analysis & Owner Escape Analysis | |||
|---|---|---|---|
| |||
...escape(__unknown) int* ptr); scope int* ptr; func2(ptr); // Error variable `ptr` has a strong... | |||
September 01 Issues » [Issue 24739] New: to!string always allocates a new string | |||
|---|---|---|---|
| |||
...conv; assert(S.init.toString.ptr != S.init.to!string.ptr); } ``` This assert should not... | |||
September 01 Issues » [Issue 24717] alias edge cases with tupleof | |||
|---|---|---|---|
| |||
...s, foo) == 1);
int delegate() dg;
dg.ptr = &s;
dg.funcptr = &foo;
assert(dg() == 1... | |||
August 31 Learn » Re: Associative Array, get value instead of poiter using `if (auto ..)`, possible? | |||
|---|---|---|---|
| |||
...K key)
{
if (auto ptr = key in aa)
return nullable(*ptr);
else
return Nullable!V... | |||
August 29 General » Re: Tell us your DIP1000 woes | |||
|---|---|---|---|
| |||
...int** ptr = &value; // ptr depends upon value int* another = move(value); // ugh oh, ptr is... | |||
August 26 General » Re: Tell us your DIP1000 woes | |||
|---|---|---|---|
| |||
...x;
S* s_ptr_0;
S* s_ptr_1;
}
S* g_ptr = null;
S* goo... | |||
Copyright © 1999-2021 by the D Language Foundation