www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - "Mixin is not defined" error when trying to use template mixins

reply solidstate1991 <laszloszeremi outlook.com> writes:
There's a template mixin in my dimage project's new version in 
base.d, and when I try to access it from another file I get two 
errors:

undefined identifier `ChunkyAccess4bit`, did you mean template 
`ChunkyAccess4Bit()`?

and

mixin `dimage.tga.TGA.ChunkyAccess4bit!()` is not defined

Should I put the template into the base class of TGA (Image) 
instead of keeping it outside of that?
Oct 27 2019
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Sunday, 27 October 2019 at 23:54:41 UTC, solidstate1991 wrote:
 undefined identifier `ChunkyAccess4bit`, did you mean template 
 `ChunkyAccess4Bit()`?
Read it carefully again.... bit vs Bit, simple case typo here.
Oct 27 2019