Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Difference between using || and or #119

@omegahm

Description

@omegahm

In this example:

if (is_add_sub(instr.opcode) || is_mul_div(instr.opcode)) { ... }
if (is_add_sub(instr.opcode) or is_mul_div(instr.opcode)) { ... }

When using || both functions will be support.function.any-method.c, however when using or the second function gets variable.other.c scope instead.

screen shot 2016-02-29 at 15 43 20
screen shot 2016-02-29 at 15 43 29

It even fails in the above markdown. 😢

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions