why can't structs implement interfaces?

bearophile bearophileHUGS at lycos.com
Wed Nov 25 07:09:43 PST 2009


Lars T. Kyllingstad:

> What's the bugzilla number? Should be upvoted.

I think he refers to this one (searching something in Bugzilla seems a good way to spend a morning):
http://d.puremagic.com/issues/show_bug.cgi?id=2816

In the comment 9, instead of:
bug.d(2): Error: static assert  (0) is false
bug.d(9):        instantiatied from here: bar!()
bug.d(14):        100 recursive instantiations from here: foo!(196)
bug.d(19):        253 recursive instantiations from here: baz!(300)

Someone may prefer them listed in inverted order:
bug.d(19): ...
bug.d(14): ...
bug.d(9): ...
bug.d(2): ...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list