July 04, 2021 Learn » Re: how much "real-life" code can be marked @safe ? | |||
|---|---|---|---|
| |||
...mutate` does is change the member variable `bar`. You could rewrite the above as: ```d... | |||
July 01, 2021 Issues » [Issue 22096] New: Can not get global struct member addresses at compile time | |||
|---|---|---|---|
| |||
...int bar;
}
__gshared Foo foo;
void *foo_ptr = &foo; // Works
void *bar_ptr = &foo.bar... | |||
June 30, 2021 Issues » [Issue 22094] New: Static members are not accessible via 'alias this' inside the subtype | |||
|---|---|---|---|
| |||
...alias s = S;
alias s this;
void bar() {
foo; // fails, should pass
}
}
void main() {
S2... | |||
June 26, 2021 Genel » Re: Emekli Olmuş Posblit | |||
|---|---|---|---|
| |||
...ana.b"); foo(b); S* p = &b; bar(*++p); writeln(); // 2. bölüm örnekleri: auto hesaplanan... | |||
June 26, 2021 Learn » Re: is there a way to: import something = app-xyz-classes-something; ? | |||
|---|---|---|---|
| |||
...system lookup anyway and a module "foo_bar" could be also in the file xyz... | |||
June 21, 2021 Learn » Re: is there a way to: import something = app-xyz-classes-something; ? | |||
|---|---|---|---|
| |||
...foo-bar.d: ```d module foo_bar; ``` app.d: ```d module app; import foo_bar... | |||
June 21, 2021 Learn » Re: is there a way to: import something = app-xyz-classes-something; ? | |||
|---|---|---|---|
| |||
...name. From the manual: ```d module foo_bar; ``` Tested on Windows/dmd - does NOT work :( | |||
June 18, 2021 Issues » [Issue 22041] SumType assignments should work with pointers in @safe code | |||
|---|---|---|---|
| |||
...string;
auto foobar = FooBar("foo");
foobar = FooBar("bar");
```
Signed-off-by: Luís Ferreira <contact@lsferreira... | |||
June 17, 2021 Learn » Re: Arrays of variants, C++ vs D | |||
|---|---|---|---|
| |||
...Bar
{
int x;
this(int y) { x = y; }
}
void foo(Foo f){}
void foo(Bar... | |||
June 17, 2021 D » Re: test | |||
|---|---|---|---|
| |||
...bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar... | |||
Copyright © 1999-2021 by the D Language Foundation