Perhaps these help support the use of Bool as a mechanism for defining im?

 -- John

On Sep 10, 2014, at 8:20 PM, Dan Luu <[email protected]> wrote:

> In bool.jl, there are things like
> 
> signbit(x::Bool) = false
> sign(x::Bool) = x
> abs(x::Bool) = x
> abs2(x::Bool) = x
> 
> Are these because Bool is a subtype of something where you'd expect
> these to be defined, or are these useful in their own right, and if
> so, when would you use these?
> 
> 
> Thanks,
> Dan

Reply via email to