This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
“旗帜”是公认的术语。 “传递一面旗帜”、“设置这面旗帜”等。
"Flags" is the accepted term. "Pass down a flag", "set this flag", etc.
“旗帜”一词已经使用了数十年,而且还不错。我的旧 C64 已经有零标志、进位标志等。请参阅此处了解更多信息:
http://en.wikipedia.org/wiki/Flag_(computing%29
http:// /en.wikipedia.org/wiki/Status_register
我不知道这个术语到底是何时以及由谁创造的。
"Flag" is used for these for decades now and is just fine. My old C64 already had a zero flag, carry flag, etc. See here for further info:
http://en.wikipedia.org/wiki/Status_register
I don't know exactly when this term was coined and by whom.
.NET 框架有一个 Flags 属性,用于准确指示您所描述的行为。
Flags
他们并不只是为他们想要的任何东西编造名字,所以旗帜可能是最容易接受的术语。
The .NET framework has a Flags attribute that is used to indicate exactly the behavior you're describing.
They don't exactly just make up names for whatever they want, so a flag is probably the most acceptable term.
我还看到了“位标志”。
I've also seen "bit flags".
在数学中,单例集是仅包含一个元素的集合,因此您可以将它们称为单例位集或单例位掩码,但我在实践中还没有看到这种情况。
In mathematics, a singleton set is a set with exactly one element, so you could conceivably call them a singleton bitset or singleton bitmask, but I haven't seen this in practice.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(5)
“旗帜”是公认的术语。 “传递一面旗帜”、“设置这面旗帜”等。
"Flags" is the accepted term. "Pass down a flag", "set this flag", etc.
“旗帜”一词已经使用了数十年,而且还不错。我的旧 C64 已经有零标志、进位标志等。请参阅此处了解更多信息:
http://en.wikipedia.org/wiki/Flag_(computing%29
http:// /en.wikipedia.org/wiki/Status_register
我不知道这个术语到底是何时以及由谁创造的。
"Flag" is used for these for decades now and is just fine. My old C64 already had a zero flag, carry flag, etc. See here for further info:
http://en.wikipedia.org/wiki/Flag_(computing%29
http://en.wikipedia.org/wiki/Status_register
I don't know exactly when this term was coined and by whom.
.NET 框架有一个
Flags
属性,用于准确指示您所描述的行为。他们并不只是为他们想要的任何东西编造名字,所以旗帜可能是最容易接受的术语。
The .NET framework has a
Flags
attribute that is used to indicate exactly the behavior you're describing.They don't exactly just make up names for whatever they want, so a flag is probably the most acceptable term.
我还看到了“位标志”。
I've also seen "bit flags".
在数学中,单例集是仅包含一个元素的集合,因此您可以将它们称为单例位集或单例位掩码,但我在实践中还没有看到这种情况。
In mathematics, a singleton set is a set with exactly one element, so you could conceivably call them a singleton bitset or singleton bitmask, but I haven't seen this in practice.