On 4/11/2012 8:02 PM, David Simcha wrote:
Ok, but I downloaded the new beta and changed closureOf to:
template closureOf( T ) {
static if( isScalar!(Unqual!T) ) {
enum closureOf = Closure.Scalar;
} else {
enum closureOf = T.closure;
}
}
where isScalar is defined as:
template isScalar( T ) {
enum isScalar = !is( T == class ) &&
is( typeof((){
T x;// = MinusOne!T;
T y = x;
T z;
if( x == x || x != x ) {
x = x;
x += x; x -= x; x /= x; x *= x;
x = x + x; x = x - x; x = x / x;
}
}()) );
}
It still gives a "possible circular dependency" error message. Any clue why?
I would guess that type T is calling closureOf, which is what it was doing
before.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta