On Sep 19, 2008, at 2:29 PM, Brice Figureau wrote:
> + def evaluate(scope)
> + # evaluate the operands, should return a boolean value
> + lval = @lval.safeevaluate(scope)
> + rval = @rval.safeevaluate(scope)
Following the normal language processing rules, you'd only want to
evaluate the rval if the operator passes. That is, if you're using
'and', and the lval is false, then you wouldn't want to evaluate the
rval. That's the behaviour I would expect and prefer.
--
I'm seventeen and I'm crazy. My uncle says the two always go together.
When people ask your age, he said, always say seventeen and insane.
-- Ray Bradbury
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---