www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Synchronizing on an interfaces classinfo

reply Frank Benoit <keinfarbton googlemail.com> writes:
I got an segmentation fault in the attemp to synchronize on a interfaces 
classinfo

interface IFigure{
}

static this(){
   synchronize( IFigure.classinfo ){ // << crash
   }
}

Is that a bug, or is there a documented reason why this is?
Aug 07 2008
parent davidl <davidl 126.com> writes:
在 Thu, 07 Aug 2008 22:02:12 +0800,Frank Benoit  
<keinfarbton googlemail.com> 写道:

 I got an segmentation fault in the attemp to synchronize on a interfaces  
 classinfo

 interface IFigure{
 }

 static this(){
    synchronize( IFigure.classinfo ){ // << crash
    }
 }

 Is that a bug, or is there a documented reason why this is?
whatever the reason is, it's clearly a bug. -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Aug 08 2008