Mixin can't access library symbols?
    faissaloo 
    faissaloo at gmail.com
       
    Fri May  3 17:55:19 UTC 2019
    
    
  
On Friday, 3 May 2019 at 17:51:39 UTC, Adam D. Ruppe wrote:
> On Friday, 3 May 2019 at 17:48:50 UTC, faissaloo wrote:
>> How can I get a mixin to implicitly include the symbols from 
>> its surrounding context? Is this possible?
>
> What's your big picture goal? Do you have sample code you have 
> tried so far?
>
> Also, are you talking mixin("string") or mixin template? They 
> work differently with symbols too.
My sample code is too big to be useful. The use of my mixin looks 
like:
     mixin(defState!("XEvent value;"));
But it tells me it can't find the symbol XEvent despite me having 
used it elsewhere.
    
    
More information about the Digitalmars-d-learn
mailing list