BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Eval::NoSuchLang

Error due to specifying an unknown language for EVAL

class X::Eval::NoSuchLang is Exception { }
Code

Error thrown when EVAL($str, :$lang) specifies a language that the compiler does not know how to handle.

For example

EVAL 'boo', lang => "bar";
CATCH { default { put .^name, ': ', .Str } };
# OUTPUT: «X::Eval::NoSuchLang: No compiler available for language 'bar'␤»
Code

Methods§

method lang§

method lang()
Code

Returns the language that EVAL did not know how to handle.