June 19, 2023 Learn » Using C++ Classes From D: dmd cannot link, while ldc segfault | |||
|---|---|---|---|
| |||
...field);
writeln(d1.mul(4));
Base b1 = d1;
b1.print3i(1, 2, 3);
deleteInstance(d1... | |||
June 05, 2023 General » Re: Feature: `static cast` | |||
|---|---|---|---|
| |||
...sideways
//B1* b1b2s = static_cast<B1*>(b2s); // error: (same)
B1* b2b1d = dynamic_cast<B1*>(b2s... | |||
April 27, 2023 Announce » Re: DIP1044---"Enum Type Inference"---Formal Assessment | |||
|---|---|---|---|
| |||
...just fine:
```
import std.stdio;
enum {
A1,
B1,
C1,
D1
}
enum {
_A,
_B,
_C,
_D... | |||
April 05, 2023 Issues » [Issue 23825] New: No warnings printed for aliases to deprecated struct or class members | |||
|---|---|---|---|
| |||
...S.a;
alias a2 = s.a;
alias b1 = S.b;
alias b2 = s.b;
S2... | |||
March 14, 2023 Genel » in/ref overloading functions (aşırı yükleme işlevleri) | |||
|---|---|---|---|
| |||
...devam etti 😀 Teknik olarak ise, örnekteki b1 basketindeki ürün elma ve derleyici ref parametresi... | |||
November 29, 2022 Issues » [Issue 23519] New: Unnecessary and inconsistent restrictions on delegate subtyping | |||
|---|---|---|---|
| |||
...delegate(Super))[] a1;
const(void delegate(Sub))[] b1=a1; // ok
Sub delegate() a2;
Super delegate... | |||
November 17, 2022 Learn » Re: How do you return a subclass instance from a base class method? | |||
|---|---|---|---|
| |||
I don't get it - you never made use of b1 or b2... | |||
November 17, 2022 Learn » Re: How do you return a subclass instance from a base class method? | |||
|---|---|---|---|
| |||
...b1, Base b2)
{
return new typeof(this);
}
}
class Derived : Base
{
override Object createMostDerived(Base b1... | |||
October 25, 2022 Learn » Re: Is "auto t=T();" not the same as "T t;"? | |||
|---|---|---|---|
| |||
...return B.init;
}
}
void main()
{
auto b1 = B.init;
b1.writeln;
B b2 = B();
b2... | |||
October 25, 2022 Learn » Re: Is "auto t=T();" not the same as "T t;"? | |||
|---|---|---|---|
| |||
...b1;
b1.a = b1.a.dup; // copy on write
b1.a[0].i ~= '1';
b1... | |||
Copyright © 1999-2021 by the D Language Foundation