diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-02-18 15:18:42 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-18 15:18:42 +0100 |
commit | 739dc8094e4a4f6dd2f0eb0fb2eb8ce8191cb001 (patch) | |
tree | ce9b1324811841075774ac5c466077030f32e864 | |
parent | b5eed8ab3f29a898c7e0b838060dfaad7e678ef4 (diff) | |
download | Nim-739dc8094e4a4f6dd2f0eb0fb2eb8ce8191cb001.tar.gz |
make set specification more clear; refs #10524
-rw-r--r-- | doc/sets_fragment.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/sets_fragment.txt b/doc/sets_fragment.txt index 5c341b7c8..e6332404f 100644 --- a/doc/sets_fragment.txt +++ b/doc/sets_fragment.txt @@ -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: |