SplitScript reference / Migration / Bitwise complement
Bitwise complement
Migration from C#, JavaScript
Source pattern
- C#:
~
Canonical SplitScript
~becomes!.
Use the canonical language and API symbols linked below.
Semantic difference
Use type-directed !: it is logical negation for booleans and width-preserving bitwise complement for integers.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
- Integer.bitNot (standard library)