modifyable results for generics; teventemitter works
This commit is contained in:
parent
12f22ba68a
commit
7000cf51b7
10 changed files with 103 additions and 40 deletions
|
|
@ -10,17 +10,12 @@
|
|||
## The ``sets`` module implements an efficient hash set and ordered hash set.
|
||||
##
|
||||
## **Note**: The data types declared here have *value semantics*: This means
|
||||
## that ``=`` performs a copy of the hash table. If you are overly concerned
|
||||
## with efficiency and know what you do (!), you can define the symbol
|
||||
## ``shallowADT`` to compile a version that uses shallow copies instead.
|
||||
## that ``=`` performs a copy of the set.
|
||||
|
||||
import
|
||||
os, hashes, math
|
||||
|
||||
when defined(shallowADT):
|
||||
{.pragma: myShallow, shallow.}
|
||||
else:
|
||||
{.pragma: myShallow.}
|
||||
{.pragma: myShallow.}
|
||||
|
||||
type
|
||||
TSlotEnum = enum seEmpty, seFilled, seDeleted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue