I remember think that being able to mark specific parts of code with certain attributes, inside a block, could be very useful.

for example:

--------
void foo()
{
   //Code

   /Critical section
   nothrow {
       //code here can't throw
   }

   //More code
}
--------

I have since learned that you can do this with lambda's instead, declaring and calling them in a single line:

--------
void foo()
{
   //Code

   /Critical section
   () nothrow
{
       //code here can't throw
   }

   //More code
}
--------

Reply via email to