September 28 Learn » Perfect: using foreach with more... | |||
|---|---|---|---|
| |||
...e);
}
return 0;
}
}
import std.stdio;
void main()
{
auto foo = Foo!Sarma( [2, 4... | |||
September 26 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
...16))
.copy(hex[]);
}
import std.stdio;
void main()
{
enum hex = "48656C6C6F2044202620576F726C6421";
enum size = hex.length... | |||
September 24 General » Re: float.sizeof should be 4 | |||
|---|---|---|---|
| |||
...and uint on 32-bit systems. The main problem with it not being a size... | |||
September 25 DIP Development » Re: First Draft: Coroutines | |||
|---|---|---|---|
| |||
...type on the outer function."
```d
void main() {
InstantiableCoroutine!(int, int, int) var = &myCo;
}
int... | |||
September 24 General » Re: float.sizeof should be 4 | |||
|---|---|---|---|
| |||
...T.sizeof * 8;
}
import std.stdio;
void main()
{
ByteSize!iColor.writeln(" == ",
... | |||
September 23 Learn » mod of negative number | |||
|---|---|---|---|
| |||
...following program:
\<code>
import std.stdio;
int main(string[] args) {
uint Q = 7681;
writeln("Val... | |||
September 23 Issues » [Issue 24781] New: alias this on inner structs have wrong behaviour | |||
|---|---|---|---|
| |||
...static @property bool isValid() { assert(0); }
}
void main()
{
Foo foo;
imported!"std.stdio".writeln(foo... | |||
September 23 DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...y) {
super(x);
this.y = y;
}
}
void main() {
B b1 = B(1, 2), b2 = B... | |||
September 23 Issues » [Issue 24780] New: Errors in Using "alias this = arr" within a Class | |||
|---|---|---|---|
| |||
...A
{
int [] arr;
alias arr this;
}
void main()
{
A a = new A;
a ~= 1;
writeln... | |||
September 23 General » [SAOC 2024] Improving D Error Messages Weekly Update #1 | |||
|---|---|---|---|
| |||
...and the DMD Codebase:** One of the main challenges I faced this week was getting... | |||
Copyright © 1999-2021 by the D Language Foundation