randomSample does not accept char[]

2013-01-22 Thread andrea9940
Hi everyone, can you explain me why this code DOES compile: /*---*/ import std.range, std.random; void main() { int[] vowels = ['A', 'E', 'I', 'O', 'U']; static assert(isInputRange!(typeof(vowels))); auto x = randomSample

Re: randomSample does not accept char[]

2013-01-22 Thread andrea9940
On Tuesday, 22 January 2013 at 10:53:16 UTC, mist wrote: Short answer: unicode Long answer is here: http://dlang.org/phobos/std_range.html#.hasLength , please pay attention to narrow string paragraph. (failed constraint is hasLength!char[]) int is >= dchar so no issues for int. Thanks !

Re: Move VisualD to github/d-programming-language ?

2013-09-07 Thread andrea9940
Simply awsome