Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Александр Петросян (PAF) 09.09.2004 10:54
1.@main[] ^try{ ^switch(2){ ^case(1){^method1[param1]} ^case(2){^debugCall[method2;param2]} ^case(3){^debugCall[method3;param3]} } }{ ^if($exception.type eq debug){ $exception.handled(1) $exception.source failed ($exception.comment) } } @debugCall[name;param][method] $method[$$name] ^try{ ^method[$param] }{ ^throw[debug;$name;$exception.source: $exception.comment] } @method2[p2] OK #comment me ^doNothingAndGetMoney[]