Expressions

- Added Expression::eval short-circuit.
- Added int/number exlclusions for Nibbler::getDOM.
- Added Variant::boolean for exatracting filter results.
This commit is contained in:
Paul Beckingham 2011-06-16 20:30:48 -04:00
parent 6a48d86f2c
commit 4fca40fc69
4 changed files with 63 additions and 9 deletions

View file

@ -852,4 +852,12 @@ void Variant::promote (Variant& lhs, Variant& rhs)
}
////////////////////////////////////////////////////////////////////////////////
// Casts to boolean and returns the value. Used to evaluating expression
// results.
bool Variant::boolean ()
{
cast (v_boolean);
return mBool;
}
////////////////////////////////////////////////////////////////////////////////