[challenge] Bounded types

Tomek Sowiński just at ask.me
Sun Oct 10 15:15:24 PDT 2010


Philippe Sigaud napisał:

> As you can see, an "open or closed for both ends" policy could be
> interesting to add. In the previous example, is 1.0 a correct value?

It can be handled as in std.random: Bounded!(T, min, max, string bounds = "[)"). But with "[]" 
as default.

-- 
Tomek


More information about the Digitalmars-d mailing list