variable x cannot be read at compile time (ctfe)
    bearophile 
    bearophileHUGS at lycos.com
       
    Mon Dec 17 04:10:54 PST 2012
    
    
  
maarten van damme:
> I always get "variable x cannot be read at compile time" in 
> this method :
>
> auto bitsetToRange(in SudokuCell x) {
>     return boardSide.iota().filter!(i => (x >> i) & 
> 1)().map!(x=>x+1)();
> }
>
> with SudokuCell beeing declared as:
> alias ushort SudokuCell;
Why don't you show us a little complete compilable program that 
contains your problem?
Bye,
bearophile
    
    
More information about the Digitalmars-d-learn
mailing list