Auto-casting in range based functions?

2012-05-13 Thread Andrew Stanton
I have been playing around with D as a scripting tool and have been running into the following issue: --- import std.algorithm; struct Delim { char delim; this(char d) { delim = d; } } void main() { char[] d = ['a', 'b', 'c']; auto

Re: Auto-casting in range based functions?

2012-05-13 Thread Artur Skawina
On 05/13/12 19:49, Andrew Stanton wrote: I have been playing around with D as a scripting tool and have been running into the following issue: --- import std.algorithm; struct Delim { char delim; this(char d) { delim = d; } }

Re: Auto-casting in range based functions?

2012-05-13 Thread Jonathan M Davis
On Sunday, May 13, 2012 19:49:00 Andrew Stanton wrote: I have been playing around with D as a scripting tool and have been running into the following issue: --- import std.algorithm; struct Delim { char delim; this(char d) { delim = d;