For Eu2.4beta: a suggestion

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu