https://d.puremagic.com/issues/show_bug.cgi?id=9792
Justin Whear <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Justin Whear <[email protected]> 2014-02-03 16:25:48 PST --- (In reply to comment #0) > I'd like this code to work: > > > import std.algorithm: sort; > void main() { > const data = [1, 5, 2].sort(); > auto len = data.length; > } > > > DMD 2.063alpha gives: > > temp.d(4): Error: mutable method std.range.SortedRange!(int[], "a < > b").SortedRange.length is not callable using a const object Additionally `contains`, and probably `lowerBound`, `equalRange`, and `upperBound`. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
