hkoba / yatt_lite

YATT::Lite - Template with "use strict"
Other
5 stars 0 forks source link

:with_ignoring_die(...) #175

Open hkoba opened 5 years ago

hkoba commented 5 years ago

As noted in #174, $SIG{__DIE__}' handlers inYATT::Lite::WebMVC0::DirAppconflict with some modules which useseval {...}` to test some edge conditions such as module presence, ISA relation.

So, let's provide an entity like :with_ignoring_die(code), which temporarily disables $SIG{__DIE__} while the $code is running.

hkoba commented 5 years ago

It seems to me this name :with_ignoring_die is misleading because the use of this entmacro suppresses only $SIG{__DIE__} so you still receive die exceptions. Suggestions are welcome.