randomAccessRange.sort() vs randomAccessRange.array.sort()
monarch_dodra
monarchdodra at gmail.com
Fri Mar 8 11:12:31 PST 2013
On Monday, 4 March 2013 at 23:55:06 UTC, deed wrote:
> Meaning sortable ranges are actually a narrow subset of random
> access ranges? Why aren't the constraints listed in the docs?
> Are the source files and error messages the only way to get
> this info?
Unless I'm mistaken, this was recently fixed. Are you using 2.062?
Having perfectly perfect constraints is a lot of work and review.
When we get it wrong, yes, you have to look at source. But
contrast this with C++, when you *always* have to look at source
or horrible template errors to find out what the error is. D has
it good, even when the constraint safety net fails.
More information about the Digitalmars-d-learn
mailing list