October 08 Learn » Re: Why is this not allowed? | |||
|---|---|---|---|
| |||
...Go
package main
import "fmt"
type EntityDef struct {
stats struct {
hp int
}
}
func main() {
def... | |||
October 07 General » One of the thing I like in D | |||
|---|---|---|---|
| |||
```d
void main()
{
auto a = 0;
auto b = 0;
auto c = 1;
auto ptr = &(c... | |||
October 07 Learn » Re: Why is this not allowed? | |||
|---|---|---|---|
| |||
...int value)
=> baz = value;//*/
int baz;
}
}
void main()
{
Foo foo;
foo.bar = 7;
foo.baz... | |||
October 07 Learn » Re: Why is this not allowed? | |||
|---|---|---|---|
| |||
...struct EntityDef
{
Tuple!(int, "hp") stats;
}
void main()
{
EntityDef ed;
int x = ed.stats.hp;
}
``` | |||
October 06 General » [SAOC 2024] - Fix Segmentation fault when compiling druntime Weekly update #3 | |||
|---|---|---|---|
| |||
...scope is now stored in sc. The main aim was to restore the scope where... | |||
October 06 General » [SAOC 2024] SARIF Library and Outputs - Weekly Update #3 | |||
|---|---|---|---|
| |||
...blob/main/sarif.d)
- [sarifoutput.md](https://github.com/royalpinto007/d-drafts/blob/main/sarifoutput... | |||
October 06 Learn » Precision Error? | |||
|---|---|---|---|
| |||
...Line 74
}
2
0.8
1.14286
main.d(74): [unittest] This assert failed
Can... | |||
October 06 Issues » [Issue 24798] New: std.algorithm.substitute appears to be destroying an already destroyed value | |||
|---|---|---|---|
| |||
...fails the assertion in the destructor:
---
void main()
{
import std.algorithm.comparison : equal;
import std... | |||
October 05 Learn » Re: Why is this not allowed? | |||
|---|---|---|---|
| |||
... int baz;
}
}
void main()
{
Foo foo;
foo.bar = 7... | |||
October 05 Issues » [Issue 24796] New: Confusing irrelevant 'cannot pass rvalue argument' error message on a type error | |||
|---|---|---|---|
| |||
...com
Reporter: andy-hanson@protonmail.com
```
void main() {
foo(Asdf());
}
void foo(in Asdg x... | |||
Copyright © 1999-2021 by the D Language Foundation