September 28 Learn » Re: Best practices for class instance variables as parameters | |||
|---|---|---|---|
| |||
...of a class is, of course, an object. The instance's variables can be int... | |||
September 25 Issues » [Issue 24785] Add explicit template arguments for lambdas | |||
|---|---|---|---|
| |||
...d allSatisfy!(function template(T) => is(T : Object), ...) ``` Although requiring some modifications to `allSatisfy` to... | |||
September 25 Issues » [Issue 24785] New: Add explicit template arguments for lambdas | |||
|---|---|---|---|
| |||
...look like this: ```d delegate template(T : Object = Object, Ts...) auto ref T (auto ref... | |||
September 24 DIP Development » Re: Third and Hopefully Last Draft: Primary Type Syntax | |||
|---|---|---|---|
| |||
...someone writes `new class (Object)`, that’s a compile error today (if `Object` refers to a... | |||
September 25 DIP Development » Re: First Draft: Coroutines | |||
|---|---|---|---|
| |||
...Example Descriptor Object" https://gist.github.com/rikkimax/fe2578e1dfbf66346201fd191db4bdd4/0bb4442c092e061d520c35a43278f0819666f26f#example-descriptor-object Recognizing a... | |||
September 23 DIP Development » Re: Third and Hopefully Last Draft: Primary Type Syntax | |||
|---|---|---|---|
| |||
...Arguments) {}`. If not, it’s `new class /*implicit Object*/(Arguments) {}` because of backwards compatibility.
I’ll commit... | |||
September 22 DIP Development » Re: Third and Hopefully Last Draft: Primary Type Syntax | |||
|---|---|---|---|
| |||
...d
alias exit = Object;
Object x1;
void main()
{
scope (exit) x1 = new Object(); // Still a... | |||
September 20 General » Re: Phobos v3 idea: File interface | |||
|---|---|---|---|
| |||
...perfectly capable of using RC for the object lifetime (construction and destruction) and GC for... | |||
September 19 Issues » [Issue 24772] Casting class references to void* should be @safe | |||
|---|---|---|---|
| |||
...e.
```d
import std.stdio;
void main() {
writeln(cast(size_t)cast(void*)new Object);
}
```
-- | |||
September 19 Issues » [Issue 24772] Casting class references to void* should be @safe | |||
|---|---|---|---|
| |||
...printing the address of an object:
```
auto o = new Object();
writeln(cast(void*) o);
```
Addresses... | |||
Copyright © 1999-2021 by the D Language Foundation