Re: object.error: Privileged Instruction

2012-09-26 Thread Don Clugston
On 22/09/12 21:49, Jonathan M Davis wrote: On Saturday, September 22, 2012 21:19:27 Maxim Fomin wrote: Privilege instruction is an assembly instruction which can be executed only at a certain executive process context, typically os kernel. AFAIK assert(false) was claimed to be implemented by dmd

Re: object.error: Privileged Instruction

2012-09-22 Thread Ali Çehreli
On 09/22/2012 11:33 AM, simendsjo wrote: > assert(false, "aoeu"); // with message, object.error: Privileged Yep, Dvorak keyboard rules! ;) Ali

Re: object.error: Privileged Instruction

2012-09-22 Thread Jonathan M Davis
On Saturday, September 22, 2012 21:19:27 Maxim Fomin wrote: > Privilege instruction is an assembly instruction which can be > executed only at a certain executive process context, typically > os kernel. AFAIK assert(false) was claimed to be implemented by > dmd as a halt instruction, which is privi

Re: object.error: Privileged Instruction

2012-09-22 Thread Maxim Fomin
Privilege instruction is an assembly instruction which can be executed only at a certain executive process context, typically os kernel. AFAIK assert(false) was claimed to be implemented by dmd as a halt instruction, which is privileged one. However, compiled code shows that dmd generates int

object.error: Privileged Instruction

2012-09-22 Thread simendsjo
this() { setAssertHandler(&myAssertHandler); f(); } version(unittest) { void f() { //assert(false); // without message, object.error: Breakpoint assert(false, "aoeu"); // with message, object.error: Privileged Instruction } }