randomSample does not accept char[]

andrea9940 no at mail.plz
Tue Jan 22 02:59:13 PST 2013


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 !


More information about the Digitalmars-d mailing list