Feature Request: Eliminate as many try block as possible

Davidl Davidl at 126.com
Thu Apr 5 00:03:06 PDT 2007


Step1: enhance the Signal & Slot func, make it support observer of a  
delegate of a nested func
Step2: provide low-level func, SaveStackFrame, RestoreStackFrame(these two  
func manipulate the SP)
actually they are quite simple, a rough implementation of them would be(i  
haven't tried to compile
it actually , but they should do the trick) :
struct Frame
{
     static int _esp;
     SaveStackFrame()
     {
         asm
         {
             mov _esp,ESP;
         }
     }

     RestoreStackFrame()
     {
         asm
         {
             mov ESP,_esp;
         }
     }
}

Step3:
make all throw exception in library all proceeded by signal & slot. This  
would reduce the runtime
expense, and i think would provide user a lot possibilities with  
proceeding the exception generated
  by the standard library. like continue the standard library process? or  
break the process?



More information about the Digitalmars-d mailing list