Andrej Mitrovic wrote:
On 4/6/12, Piotr Szturmaj<bncr...@jadamspam.pl>  wrote:
Static opCall() should do the trick

But it seems like a roundabout way to work around an implementation
issue just to enable annotations.

What do you mean? You can also initialize structs without default contructor:

struct Author { string name = "empty"; }
// struct Author { string name; } - this works too

enum a = Author();
pragma(msg, a.name);
enum b = Author("test");
pragma(msg, b.name);

I don't think default constructors or opCall are _needed_ for annotations.

Well anyway as long as we *get* annotations at some point, all will be fine. :)

I'm sure it will!

Reply via email to