"Error: Undefined identifier" when moving import to another module

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 19 07:48:17 PDT 2014


On Sunday, 19 October 2014 at 09:39:05 UTC, nrgyzer wrote:
> Hi guys,
>
> when I do the following:
>       static if ( isCallable!(mixing(m) )

"mixing" ?

> void main() { /* do something here */ }

What exactly are you doing here?

> ... I'm getting many error messages like these:
>
> myMain.d-mixin-11(11): Error: undefined identifier 
> _D12TypeInfo_xAa6__initZ
> myMain.d-mixin-11(11): Error: undefined identifier 
> _D49TypeInfo_xAS3std8typecons16__T5TupleTkTkTkZ5Tuple6__initZ
> myMain.d-mixin-11(11): Error: undefined identifier

Sounds like your import was also import std.typecons which 
appears to have been required in your main.


More information about the Digitalmars-d-learn mailing list