Jeroen
Jeroen

Reputation: 16825

Bitwise NOT Operator in D

Is there a bitwise NOT operator included in D2? If not, what's an alternative? Will ! just work? I'm guessing it won't because if it did !1 would equal true, which it doesn't.

Upvotes: 3

Views: 192

Answers (1)

Jeroen
Jeroen

Reputation: 16825

From the comments:

The correct way to do it is using the Complement Expression. (~1 as opposed to !1)

Upvotes: 3

Related Questions