Bug or "hidden" feature?

bauss jj_1337 at live.dk
Mon Nov 6 09:44:24 UTC 2017


If a function has an UDA you don't need to give the function a 
return type.

Is that a bug or a hidden feature?

Example:

```
import std.stdio;

struct A { }

@A test()
{
	writeln("Called test()");
}

@A test2()
{
	return true;
}

void main()
{
	test();
	writeln(test2());
}
```


More information about the Digitalmars-d mailing list