mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 12:37:46 +00:00
make set specification more clear; refs #10524
This commit is contained in:
@@ -6,6 +6,10 @@ only be an ordinal type of a certain size, namely:
|
||||
* ``char``
|
||||
* ``enum``
|
||||
|
||||
For signed integers the set's base type is defined to be in the
|
||||
range ``0 .. MaxSetElements-1`` where ``MaxSetElements`` currently always
|
||||
2^16.
|
||||
|
||||
or equivalent. The reason is that sets are implemented as high
|
||||
performance bit vectors. Attempting to declare a set with a larger type will
|
||||
result in an error:
|
||||
|
||||
Reference in New Issue
Block a user