Fix eql-specializer dispatch caching.
authorStas Boukarev <stassats@gmail.com>
Fri, 26 Sep 2014 20:46:35 +0000 (00:46 +0400)
committerStas Boukarev <stassats@gmail.com>
Fri, 26 Sep 2014 20:46:50 +0000 (00:46 +0400)
commit85165d989a563abdf0e31e14ece2e97b5d821187
tree51289c41c92cff6bc9c307b33929c344b59c2df0
parent898a57818bea33119b1f5c53457f88e79f680fd3
Fix eql-specializer dispatch caching.

When the EQL specializer is a class it may clash with a class
specializer, since the class specializer is cached as a class object.
Use twice as much space for cache, the cache entry itself and a bit, 1
if it's an eql-specializer, 0 if it's a class specializer.

Fixes #295
src/c/gfun.d
src/c/main.d