Retoor software development Projects Research SearchXNG
Register Sign In

2 lines
67 B
Plaintext
Raw Normal View History

feat: add bitwise AND and OR operators for numbers with 32-bit unsigned semantics Implement num_bitwiseAnd and num_bitwiseOr native methods that cast operands to uint32_t before applying bitwise operations, matching the existing bitwiseNot pattern. Register both operators on the number class and add test files covering basic cases, max u32 boundary, overflow behavior, and non-numeric operand error handling.
2014-02-24 16:27:43 +01:00
1 | false // expect runtime error: Right operand must be a number.
Reference in New Issue Copy Permalink
f2edb03389
wren/test/number/bitwise_or_operand_not_num.wren
Response time: 22ms
Mail Licenses API