You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often times it's convenient to have a set of flags stored as a single variable (particularly when modeling legacy code). It would be great to support bitwise ops like &, |, ^, ~, etc, for arithmetic, to make this simpler.
Alternatively, one could use set[tMyFlagEnum], but that's also somewhat inconvenient today -- as far as I can tell there is no syntax for a literal set. It would be nice to be able to do:
var s : set[int];
s = {1,2,3};
(or if these features exist, they don't seem to be documented)
The text was updated successfully, but these errors were encountered:
Often times it's convenient to have a set of flags stored as a single variable (particularly when modeling legacy code). It would be great to support bitwise ops like &, |, ^, ~, etc, for arithmetic, to make this simpler.
Alternatively, one could use
set[tMyFlagEnum]
, but that's also somewhat inconvenient today -- as far as I can tell there is no syntax for a literal set. It would be nice to be able to do:(or if these features exist, they don't seem to be documented)
The text was updated successfully, but these errors were encountered: