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.
我想将现有字符串转换为枚举(而不是将其作为枚举读入)。我怎样才能做到这一点?
例子:
-- type declaration type Hands is (Left, Right); -- code body Hand : Hands; Hand := Hands'Value("Left"); -- yields `Left`