Search

12 hours ago
Issues »
https://issues.dlang.org/show_bug.cgi?id=20368

--- Comment #6 from dlangBugzillaToGithub <robert.schadek...
1 day ago
Learn »
...this hello world program:

```
import std.stdio;

void main(){
    writeln("hello");
}

```

For a single file...
1 day ago
General »
...default serialization.");
        void delegate() dlg;
        dlg.funcptr = serializationMethods[myType];
        dlg.ptr = cast (void *) this;
        dlg...
1 day ago
General »
...import std;

interface ISerialize {
    void serialize();
}

struct thing{ }

class SerializableRoot {
    void serialize(this T)() {
        // serialize...
1 day ago
Issues »
...will also work with template parameters:

```d
void func(T > Parent)(T thing) {
}
```

Another benefit...
1 day ago
Issues »
...true thanks to alias this, e.g.

```
void main()
{
    auto foo = new Foo;
    A a...
2 days ago
General »
...runtime reflection.

```d
interface ISerialize {
	void serialize();
}

class SerializableRoot {
	void serialize() {
		// serialize here
	}
}

class MyType...
2 days ago
DIP Ideas »
...you're testing for inheritance, e.g.

```
void main()
{
    auto foo = new Foo;
    A a...
2 days ago
General »
...abstract void serialize();

	protected void serialize_(T:Parent)(T self) {
		
	}
}

class Child : Parent {
	void serialize...
2 days ago
Learn »
...h", e = "e", l = "l", o = "o" }

void main()
{
  with(msg)
  {
    assert(bindArgument!(hello, 0...
« First   ‹ Prev
1 2
Next ›   Last »