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

nrgyzer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 19 09:09:38 PDT 2014


On Sunday, 19 October 2014 at 14:48:18 UTC, monarch_dodra wrote:
> 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.

"mixing" should be replaced with "mixin": static if ( 
isCallable!(mixin(m) )

My main is empty in both cases. So nothing done in my main 
(currently).


More information about the Digitalmars-d-learn mailing list