For Eu2.4beta: a suggestion
- Posted by Christian.CUVIER at agriculture.gouv.fr Mar 28, 2003
- 348 views
I know that short-circuit evaluation is limited to conditionals. But I see one useful extension of this. When multiplying two quantitiies of atomic type, the result is 0 whenever one of these is also zero. So, any statement like x*y should return 0 if x=0 without evaluationg y at all. This could be handy to emulate the ? C operator ( ((x<0)*exprA+(x>=0)*exprB ), or sometimes to deal with variables we know they have no value. Any hope? CChris