Skip to content

Clarify if and, or, xor, and not, are bitwise or logical #36

@aabounegm

Description

@aabounegm

At the end of section 3 (Bytes), there is the following quote:

There are also attributes for bitwise operations: ★and, ★or, ★xor, ★not, ★left, and ★right.

Which implies that not is the bitwise complement operation, and that and/or/xor also operate bitwise.
For example, not 00-00 would be FF-FF.

However, on the same page, towards the end of subsection 4.2 (Bool), there is the following

The not attribute is a Boolean inversion. Attributes and, or, xor are logical conjunction, disjunction, and exclusive disjunction of the object itself with an a array of other Boolean values.

Which implies that these operations are logical (meaning they operate only on true/false values).
For example, not of 00-00 would be 00-01.

Which of these variants is the correct one?

And as an additional question, what is meant by "an a array of other Boolean values"? Do these operations accept an array as an argument or just one other value?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions