[erlang-questions] is there "return" in Erlang.
Anthony Ramine
nox@REDACTED
Tue Mar 1 16:12:10 CET 2011
Le 1 mars 2011 à 16:00, Raimo Niskanen a écrit :
> And if they can throw(Anything) elaborate with:
>
> judge() ->
> OK = make_ref(),
> :
> :
> throw(OK);
> :
> :
> throw(OK);
> :
> :
> catch
> OK -> ok;
> Other ->
> erlang:raise(throw, Other, erlang:get_stacktrace())
> end.
>
> But only library code should have to be prepared for such nonsense.
Why catch something to raise it immediately afterwards?
--
Anthony Ramine
Dev:Extend
http://dev-extend.eu
More information about the erlang-questions
mailing list