Early std.crypto

Walter Bright newshound2 at digitalmars.com
Tue Oct 25 20:34:01 PDT 2011


On 10/25/2011 5:22 PM, Piotr Szturmaj wrote:
> But let's get back to std.crypto. I planned to add input ranges to function put,
> because it already forms an output range. I thought that std.range.put() would
> serve the need if UFCS will be supported. But, as I guess, the best method is to
> support input ranges directly.

An easy test is that if the interface takes a T[] as input, consider a range 
instead. Ditto for output. If an interface takes a File as input, it's a red 
flag that something is wrong.


More information about the Digitalmars-d mailing list