2 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...is(Child : Parent)`` The same as a class has. Something the compiler certainly has the... | |||
2 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...the various issues that you get with class inheritance and objects on the stack in... | |||
2 days ago DIP Ideas » Re: @property fields | |||
|---|---|---|---|
| |||
...marked a variable with @property in a class or struct, you'd get an actual... | |||
2 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...Parent
}
}
class Child : Parent {
}
```
How it has to be implemented today to work:
```d
class... | |||
2 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...that in the case of classes means the user writing code for every child class. | |||
2 days ago Announce » D Language Foundation June Monthly Meeting Summary | |||
|---|---|---|---|
| |||
...less than people thought. To `new` a class, you didn't really need a GC... | |||
3 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...Inherit");
writeln();
parent = child;
parent.methB("Assign");
}
class Parent {
void methB(string s) {
writeln("MethB... | |||
3 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...methB();
writeln();
Parent parent = child;
parent.methB;
}
class Parent {
void methB() {
writeln("MethB(P) ", typeof... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...had this implemented as the `__local` storage class, but I did not include it in... | |||
4 days ago DIP Ideas » @property fields | |||
|---|---|---|---|
| |||
...classes.
```d
interface IField {
@property int field;
}
class Thing : IField {
@property int field;
}
struct Thing2... | |||
Copyright © 1999-2021 by the D Language Foundation