August 28 DIP Ideas » Re: Allow struct constructors with all parameters optional | |||
|---|---|---|---|
| |||
...foo, bar;
alias S = bar.S;
```
call.d:
```
import baz;
void main() {
auto s2 = S();
}
``` | |||
August 28 General » Re: nothrow/@nogc inference troubles with emplace/move? | |||
|---|---|---|---|
| |||
...fun2()()
{
fun1();
}
void main0() @system
{
fun1();
}
void main() @safe
{
fun2(); // not system!
}
```
We don't... | |||
August 28 Issues » [Issue 24717] alias edge cases with tupleof | |||
|---|---|---|---|
| |||
...struct S
{
int i;
char c;
}
void main()
{
S s = {2, 'c'};
ref __si = s... | |||
August 28 General » Re: This needs to be fixed | |||
|---|---|---|---|
| |||
...struct S
{
int i;
char c;
}
void main()
{
S s = {2, 'c'};
ref si = s... | |||
August 28 General » Re: This needs to be fixed | |||
|---|---|---|---|
| |||
...int) {}
}
T instance;
enum funName = "myFun";
void main()
{
int args = 0;
alias fun = __traits(getMember... | |||
August 27 Issues » [Issue 24725] New: core.sys.linux: feature detect glibc functions at build time | |||
|---|---|---|---|
| |||
...needing to implement the change. The two main ways of implementing this are: 1. Embedding... | |||
August 27 General » Re: Tell us your DIP1000 woes | |||
|---|---|---|---|
| |||
...bar()()
{
int n;
foo(&n);
}
@safe void main()
{
bar();
}
Currently, compiling this program with `-preview... | |||
August 26 General » Re: This needs to be fixed | |||
|---|---|---|---|
| |||
...Consider:
```d
struct S{ int x; }
void main(){
S s;
alias x = s.tupleof;
x... | |||
Copyright © 1999-2021 by the D Language Foundation