Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Evaluation order

In Java the evaluation order is defined to be left to right. In D it is an error to rely on this. This is true especially for the bitwise binary operators |, &, ^. TioPort determines if the operands of such an operator do contain any call or da data manipulation with increment/dedrement. If both side are doing such an action, than the operator is replaced with a call to e.g. the int dejavu.Intern.OrI( lazy int a, lazy int b ) function.