Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何用 Kotlin 编写:
flags |= newFlag
只有我发现的是:
flags = flags or newFlag
bitwise or是否有带赋值的内置运算符?
bitwise or
Kotlin(还)没有内置的按位或赋值运算符。