On 20/09/08 18:48, Luke Kanies wrote: > 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.
Yes, you're right. I'll fix this. -- Brice Figureau Days of Wonder http://www.daysofwonder.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 -~----------~----~----~----~------~----~------~--~---
