DLang Notes and Examples
← prev | next →     Top-level ToC     /operators.html     (printable version)

^^ is for exponents.

D supports both ++i and i++ which mean what you expect.

Relational operators are what you expect (==, !=, >=, etc.) and evaluate to true or false.

is checks identity

Logical operators are && for “and” and || for “or” and work like you’d expect.