June 16, 2021 General » Re: Simplification of @trusted | |||
|---|---|---|---|
| |||
...exmaple above:
```d
void foo() @trusted
{
int[100...having @trusted/@system blocks inside @safe functions would... | |||
June 16, 2021 General » Re: Simplification of @trusted | |||
|---|---|---|---|
| |||
...any shady stuff inside it. To me this really looks like foo() should be @trusted... | |||
June 16, 2021 General » Re: Simplification of @trusted | |||
|---|---|---|---|
| |||
...does now?
```d
void foo() @safe
{
int[100...DIP1035) and variables declared inside a @trusted block... | |||
June 16, 2021 General » Simplification of @trusted | |||
|---|---|---|---|
| |||
...foo() @safe
{
() @trusted { ... }();
}
```
becomes this:
```d
void foo...want trusted code blocks inside functions. Why not... | |||
June 09, 2021 Learn » Re: Class member initialization with new points to a single instance? | |||
|---|---|---|---|
| |||
...All member = x things inside a class or...s one instance of Foo there which is... | |||
May 19, 2021 Learn » Re: General rule when not to write ; | |||
|---|---|---|---|
| |||
...be common to see ; inside. The only real...to a variable. auto Foo = X; If X... | |||
May 15, 2021 Learn » Re: Recommendations on avoiding range pipeline type hell | |||
|---|---|---|---|
| |||
...void func();
class Foo {
void func();
void stuff() {
func();
}
}
```
The func inside stuff would normally... | |||
May 15, 2021 Issues » [Issue 21912] Invalid stack closure when calling delegate inside lambda | |||
|---|---|---|---|
| |||
...delegate() foo(return int delegate() dg) {
return dg;
}
int delegate() bla(int i) {
return foo... | |||
May 15, 2021 Issues » [Issue 21912] Invalid stack closure when calling delegate inside lambda | |||
|---|---|---|---|
| |||
...DG foo(DG)(DG dg) {
unpure();
return dg;
}
auto bla(int i) {
return foo((){ unpure... | |||
May 14, 2021 Issues » [Issue 21912] Invalid stack closure when calling delegate inside lambda | |||
|---|---|---|---|
| |||
...parameter `dg` of `foo` is inferred `scope`. `dg` is inferred `scope` because `foo` is inferred... | |||
Copyright © 1999-2021 by the D Language Foundation