Nim/lib
Sloane Simmons aa0d65ed70 Fix CountTableRef#getOrDefault
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`.
2016-01-09 21:46:47 -06:00
..
arch Coroutine support for i386/amd64 platforms unix/windows OSes markAndSweep/refCounting GCs. 2015-07-31 17:59:50 +03:00
core Fix code generation issues with TNimType. 2015-12-15 13:33:38 +01:00
deprecated docs now build again 2015-10-12 20:58:46 +02:00
impure new db_sqlite requires deadCodeElim:on because not every sqlite3_column_name 2015-12-29 20:39:52 +01:00
js Dom refactoring 2015-11-25 19:27:13 +02:00
packages/docutils udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
posix fix rawsockets test 2015-10-02 16:00:33 -07:00
pure Fix CountTableRef#getOrDefault 2016-01-09 21:46:47 -06:00
system do not print spurious warnings when dlopen fails; can be re-enabled with -d:nimDebugDlOpen 2015-12-29 20:39:52 +01:00
windows added poDemon flag for process management 2015-10-19 16:09:34 +02:00
wrappers added column_table_name proc 2015-12-17 14:39:40 +01:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
nimbase.h Fix code generation issues with TNimType. 2015-12-15 13:33:38 +01:00
nimrtl.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
nimrtl.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
prelude.nim Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
stdlib.nimble VM supports math and a few os procs 2014-08-30 16:37:27 +02:00
system.nim 7 div 5 == 1 2015-12-08 00:48:24 +08:00