Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixes #5035 | Felix Krause | 2016-11-18 | 1 | -10/+3 |
| | |||||
* | Fixes #4974 | Felix Krause | 2016-10-31 | 1 | -9/+15 |
| | |||||
* | fixes #4940 | andri lim | 2016-10-27 | 1 | -1/+1 |
| | |||||
* | Fixes #4946 | Felix Krause | 2016-10-24 | 1 | -0/+1 |
| | |||||
* | Table fixes. fixes #4901 | Felix Krause | 2016-10-23 | 1 | -4/+37 |
| | | | | | | | | * added `==` for OrderedTable, CountTable and the *Ref types * added missing documentation to all `==` procs * fixed clear() for OrderedTables, which did not work because `var` does not work well with `|` * added tests | ||||
* | fixes #4844 | Araq | 2016-10-08 | 1 | -1/+5 |
| | |||||
* | fixes a critical tables bug that caused 'enlarge' to crash after 'add' | Andreas Rumpf | 2016-09-05 | 1 | -3/+6 |
| | |||||
* | Merge pull request #4367 from kierdavis/4365-tables-clear | Andreas Rumpf | 2016-08-25 | 1 | -3/+3 |
|\ | | | | | Improvements to tables.clear() | ||||
| * | Add a fix for clear() on non-ref types by adding a missing 'var' annotation ↵ | Kier Davis | 2016-07-09 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | to the type signature However, this fix won't take effect until a compiler bug (#4448) is fixed. Until then, the codebase functions identically to how it did before this commit (calls to clear() fail to compile for Table/OrderedTable/CountTable as the argument is immutable). | ||||
* | | make nim bootstrap again for older versions | Andreas Rumpf | 2016-07-30 | 1 | -2/+2 |
| | | |||||
* | | stdlib and compiler don't use .immediate anymore | Andreas Rumpf | 2016-07-29 | 1 | -8/+8 |
| | | |||||
* | | Merge pull request #4463 from flyx/tables-equals-no-KeyError | Andreas Rumpf | 2016-07-19 | 1 | -5/+4 |
|\ \ | | | | | | | `==` in tables should not raise KeyError | ||||
| * | | Use getOrDefault for tables.`==` | Felix Krause | 2016-07-08 | 1 | -7/+5 |
| | | | |||||
| * | | `==` in tables should not raise KeyError | Felix Krause | 2016-07-07 | 1 | -2/+3 |
| |/ | | | | | | | | | | | * With previous code, the compiler deduced that equalsImpl may raise a KeyError. While this could only actually happen in a nasty multi-threaded environment, I fixed the code so that it will never happen. | ||||
* | | use table literal syntax | Axel Pahl | 2016-07-12 | 1 | -2/+2 |
| | | |||||
* | | explain difference between Table and TableRef in tables.nim | Axel Pahl | 2016-07-12 | 1 | -0/+33 |
|/ | |||||
* | Implement clear() for CountTableRef. Fixes #4325. | Kier Davis | 2016-06-13 | 1 | -1/+1 |
| | |||||
* | Implements tables.clear. | Dominik Picheta | 2016-06-02 | 1 | -5/+29 |
| | |||||
* | Introduce template withValue() for tables.nim too. | cheatfate | 2016-05-27 | 1 | -0/+45 |
| | |||||
* | Added del for OrderedTable and OrderedTableRef | Yuriy Glukhov | 2016-04-13 | 1 | -0/+41 |
| | |||||
* | Fix CountTableRef#getOrDefault | Sloane Simmons | 2016-01-09 | 1 | -1/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes issue with CountTableRef and getOrDefault: ```{nimrod} import tables proc main() = const testKey = "TESTKEY" let t: CountTableRef[string] = newCountTable[string]() # Before, does not compile with error message: #test_counttable.nim(7, 43) template/generic instantiation from here #lib/pure/collections/tables.nim(117, 21) template/generic instantiation from here #lib/pure/collections/tableimpl.nim(32, 27) Error: undeclared field: 'hcode' echo "Count of " & testKey & " is " & $t.getOrDefault(testKey) t.inc(testKey,3) echo "Count of " & testKey & " is " & $t.getOrDefault(testKey) when isMainModule: main() ``` Previously, `getOrDefault` for CountTableRef objects was calling the `getOrDefaultImpl` template, which used the t.data.hcode object - assuming a Table or similar object. Because CountTableRef didn't have an hcode in its data tuples, this wouldn't compile. Changed to be the same as `CountTable#getOrDefault`. | ||||
* | udpated the compiler and tester to use getOrDefault | Araq | 2015-10-13 | 1 | -8/+10 |
| | |||||
* | added getOrDefault; bootstrapping works again | Araq | 2015-10-13 | 1 | -33/+38 |
| | |||||
* | Merge branch 'mget' of https://github.com/def-/Nim into def--mget | Araq | 2015-10-13 | 1 | -33/+73 |
|\ | | | | | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim | ||||
| * | Rename mget to `[]` | def | 2015-03-31 | 1 | -55/+83 |
| | | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string | ||||
* | | breaking change: symbol lookups in generics follows spec more closely; fixes ↵ | Araq | 2015-08-07 | 1 | -4/+4 |
| | | | | | | | | #2664 | ||||
* | | Merge branch 'more_concurrency' into devel | Araq | 2015-06-30 | 1 | -168/+49 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/tut1.txt lib/core/locks.nim lib/pure/collections/tables.nim lib/pure/selectors.nim | ||||
| * | | some progress on making async multithreaded | Araq | 2015-05-28 | 1 | -168/+49 |
| | | | |||||
* | | | lib/pure/a-c - Dropped 'T' from types | pdw | 2015-06-04 | 1 | -36/+36 |
| | | | |||||
* | | | Add contains proc for tables to allow usage of `in` | Jonathan | 2015-05-05 | 1 | -0/+24 |
|/ / | |||||
* | | fixes #2625 | Araq | 2015-05-03 | 1 | -4/+7 |
| | | |||||
* | | Merge pull request #2411 from reactormonk/merge-counttables | Andreas Rumpf | 2015-04-21 | 1 | -0/+61 |
|\ \ | | | | | | | merge for CountTable, see #1680 | ||||
| * | | doc comments for merge | Simon Hafner | 2015-03-26 | 1 | -0/+3 |
| | | | |||||
| * | | merge for CountTable, see #1680 | Simon Hafner | 2015-03-26 | 1 | -0/+58 |
| |/ | |||||
* / | Use more Natural and Positive numbers in proc parameters | def | 2015-04-06 | 1 | -1/+1 |
|/ | | | | | - Didn't go through all modules, only the main ones I thought of - Building the compiler and tests still work | ||||
* | prepare for upcoming parsing change of unary operators | Araq | 2015-03-22 | 1 | -10/+10 |
| | |||||
* | Making tuples anonymous (so far... not finished). | Hans Raaf | 2015-03-17 | 1 | -23/+22 |
| | |||||
* | Fixed table getter not compiling when table value type had not '$' proc ↵ | krolik | 2015-03-05 | 1 | -1/+5 |
| | | | | overriden | ||||
* | Fix unknown symbol in tables mpairs iterator. | Hans Raaf | 2015-02-21 | 1 | -1/+1 |
| | | | | Fixes an error with mpairs iterator which was introduced with 5fbcf93860. This is used by nimforum thats why I found it. I also added a testcase for the mpairs iterator. | ||||
* | Merge ../Nim into devel | Charles Blake | 2015-02-16 | 1 | -1/+1 |
|\ | |||||
| * | Fix typos | Federico Ceratto | 2015-02-15 | 1 | -1/+1 |
| | | |||||
* | | Add comments explaining odd looking i<0..data[i]. | Charles Blake | 2015-02-16 | 1 | -3/+3 |
| | | |||||
* | | Just do wide interface of hasKeyOrPut & mgetOrPut. | Charles Blake | 2015-02-16 | 1 | -36/+55 |
| | | | | | | | | | | | | | | Extract maybe re-hash/re-search and insert logic into a new template. Use this new template to do impl templates for all three put forms (which required renaming a couple 'value' arguments to 'val'). Added OrderedTable and OrderedTableRef versions of both as well. | ||||
* | | Add TableRef version of mgetOrPut. | Charles Blake | 2015-02-16 | 1 | -0/+5 |
| | | |||||
* | | Add mgetOrPut to support just one probe chase for the common | Charles Blake | 2015-02-15 | 1 | -0/+14 |
|/ | | | | pattern of either updating or initializing table entries. | ||||
* | assignment -> shallowCopy for efficiency. | Charles Blake | 2015-02-13 | 1 | -1/+1 |
| | |||||
* | Merge ../Nim into devel; track ttables.nim delete. | Charles Blake | 2015-02-13 | 1 | -1/+1 |
|\ | |||||
| * | fixed minor bugs; cleaned up tests | Araq | 2015-02-12 | 1 | -1/+1 |
| | | |||||
* | | Update doc comments to mention rightSize. | Charles Blake | 2015-02-13 | 1 | -4/+4 |
| | | |||||
* | | Oops - missed updates to a few later rawGet()s. | Charles Blake | 2015-02-12 | 1 | -4/+8 |
| | |