Steven Schveighoffer:

And it works fine. Note I had to add \n to the readf to use a one-number-per-line style (didn't make sense otherwise).

Also the code throws if just hit enter (it means you enter no number). So the code is still bad. Also using sort instead of sort() is an anti-pattern that's going to be deprecated, hopefully in D 2.066.

Bye,
bearophile

Reply via email to