What's missing from Phobos for Orbit (package manager)

Jacob Carlborg doob at me.com
Thu Feb 14 12:28:22 PST 2013


On 2013-02-14 21:23, tn wrote:

> Yes for a default predicate, BUT I think it should be "a => a" (that is,
> identity function) instead of "a => true". Same default predicate should
> be applied to "all" function as well. This way the behavior with boolean
> ranges would match the behavior of "any" and "all" at least in Python
> and Matlab (and apparently also Ruby).

Right. But the problem with that is that a zero in D is considered false 
wheres in Ruby it's true. The only things that are false in Ruby is 
"nil" and "false".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list