Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 20, 2015 Assertion failure without line | ||||
---|---|---|---|---|
| ||||
"core.exception.AssertError@stackext.d(0): Assertion failure" how to handle this? -manfred |
May 20, 2015 Re: Assertion failure without line | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | My first gut idea is to check the file for an assert inside a mixed in string. |
May 20, 2015 Re: Assertion failure without line | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | Adam D. Ruppe wrote:
> assert inside a mixed in string.
None praesent:
private import star, stack;
class StackExtended( T): Stack!T{
Star!T stacked;
this(){ stacked= new Star!T;}
auto opOpAssign( string op, T)( T node){
stacked+= node;
return super+= node;
}
auto opUnary( string op)(){
stacked -= super.max;
return super--;
}
bool opBinaryRight( string op, Tquote)( Tquote elem)
if( is( Tquote:T) &&( "in"==op ))
{
return elem in stacked;
}
}
-manfred
|
May 21, 2015 Re: Assertion failure without line | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | Adam D. Ruppe wrote:
> My first gut idea
Turns out: it is the usage of a variable
- not newed, and
- of a type declared in the file.
-manfred
|
Copyright © 1999-2021 by the D Language Foundation