13 hours ago Issues » [Issue 20368] dmd 2.089.0 Error: expression `main` is `void` and has no value | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=20368 --- Comment #6 from dlangBugzillaToGithub <robert.schadek... | |||
1 day ago Learn » Generate documentation from ddoc | |||
|---|---|---|---|
| |||
...this hello world program:
```
import std.stdio;
void main(){
writeln("hello");
}
```
For a single file... | |||
1 day ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...default serialization.");
void delegate() dlg;
dlg.funcptr = serializationMethods[myType];
dlg.ptr = cast (void *) this;
dlg... | |||
1 day ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...import std;
interface ISerialize {
void serialize();
}
struct thing{ }
class SerializableRoot {
void serialize(this T)() {
// serialize... | |||
2 days ago Issues » [Issue 24892] We need a __traits trait to test for whether one class is derived from another | |||
|---|---|---|---|
| |||
...will also work with template parameters:
```d
void func(T > Parent)(T thing) {
}
```
Another benefit... | |||
2 days ago Issues » [Issue 24892] New: We need a __traits trait to test for whether one class is derived from another | |||
|---|---|---|---|
| |||
...true thanks to alias this, e.g.
```
void main()
{
auto foo = new Foo;
A a... | |||
2 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...runtime reflection.
```d
interface ISerialize {
void serialize();
}
class SerializableRoot {
void serialize() {
// serialize here
}
}
class MyType... | |||
2 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...you're testing for inheritance, e.g.
```
void main()
{
auto foo = new Foo;
A a... | |||
2 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...abstract void serialize();
protected void serialize_(T:Parent)(T self) {
}
}
class Child : Parent {
void serialize... | |||
2 days ago Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...h", e = "e", l = "l", o = "o" }
void main()
{
with(msg)
{
assert(bindArgument!(hello, 0... | |||
Copyright © 1999-2021 by the D Language Foundation