Why something like this is not usable?
-----------------------
int tmp;
try
{
   tmp = ...;
}
catch(..)
{
}
const(int) i = tmp;
-----------------------
Not really pretty but nothing crazy.

Reply via email to