[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] as boolean
On 12 May 2006, at 15:27, James Harkins wrote:
What should 0.5.asBoolean return?
Nothing obviously. ( it's user error)
Or perhaps it should return "maybe" : )
The problem is, different people might want different interpretations
of which numbers should be "true," so... does it make sense to impose
one person's view in the main class library?
You can always add your own class extensions in ~/Library/Application
Support/SuperCollider/Extensions so it will be available to you but
not clutter the main distribution.
Yes, I know, but I thought it would be faster if this could be
implemented
as a method in C and also that it could be useful.
Anyway, I'll just solve it with an if statement
cheers