Files
Nim/lib/pure
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
..
2015-10-07 10:03:45 +02:00
2015-09-20 18:24:49 -07:00
2015-09-20 18:24:49 -07:00
2015-02-17 02:22:30 +01:00
2015-10-01 12:05:45 -07:00
2015-06-26 07:42:58 +03:00
2015-09-07 19:51:52 -05:00
2015-03-24 03:36:34 +01:00
2015-12-03 15:57:55 +00:00
2015-10-25 02:38:33 +02:00
2015-07-01 15:40:29 +02:00
2016-01-06 16:38:27 +02:00
2015-10-12 20:58:46 +02:00
2015-10-12 16:55:23 +02:00
2016-01-04 12:52:54 +02:00
2015-10-12 20:58:46 +02:00
2015-06-15 00:56:20 +02:00
2015-07-15 22:00:44 +02:00
2015-10-27 23:36:00 +01:00
2015-02-03 09:04:24 +01:00
2015-09-30 09:49:22 -04:00
2015-11-26 01:10:52 +02:00
2016-01-08 11:54:34 +00:00
2014-08-28 09:50:51 +02:00
2015-11-26 16:05:24 +01:00
2015-09-28 23:04:17 +01:00
2015-03-24 03:47:12 +01:00
2015-10-31 13:30:07 -05:00