3 ms·
D is working on it, if I understand DIP1000 [0] correctly. The example would look like: struct X { Y y; scope ref Y getY() { return y; } } [0] htt
by qznc 10y ago
D is working on it, if I understand DIP1000 [0] correctly. The example would look like:
struct X {
Y y;
scope ref Y getY() { return y; }
}
[0] https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md