On Wednesday, May 08, 2013 22:46:53 =?UTF-8?B?Ikx1w61z?=.Marques <[email protected]>@puremagic.com 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.
You shouldn't _be_ extracting the type. The whole point of a Voldemort type is that you know what the API is but you generally can't construct the type or doing anything which involves its name (though the typeof operator can make it so that you can declare member variables with it if you absolutely have to). You know the API, because you know it's a range. Its actual type is irrelevant, and you shouldn't need to know it. - Jonathan M Davis
