On Wednesday, 8 May 2013 at 20:46:55 UTC, Luís Marques wrote:
On Wednesday, 8 May 2013 at 18:41:27 UTC, Jonathan M Davis
wrote:
It probably _should_ document that it's returning a range.
Voldemort types
just make it so that the exact type is unknown.
So why not just declare "SomeRange generator()"? It still
doesn't leak out the internal struct and any automatic doc
generator should have a easier time extracting the type. There
must be something I'm missing.
"SomeRange" is the internal struct here. There is no "range type"
in D, it is duck typing in action.