--- Comment #8 from 2010-10-29 17:28:53 PDT ---
import std.stdio, std.range;
void main() {

With DMD 2.050 that program prints:

[0, 1, 2, 3, 4]

But that's not an array, it's a lazy sequence, and I'd like to be able to tell
apart an array from a lazy sequence in a printout.

A possible simple way to tell them apart is to print that lazy range like this,
like an array, but with semicolons instead of commas (in some languages this
syntax is used to tell apart linked lists from arrays, but in D lazy ranges are
probably more common than lists):

[0; 1; 2; 3; 4]

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to