using R12B-2<br><br><br>i've been staring at this but I can't figure out what is wrong with it:<br><br>test() -><br> try expression of<br> Val -> Reply = value<br> catch <br> _:_ -> Reply = exception<br>
end,<br> {ok, Reply, state}.<br> <br>test2() -><br> Reply = try expression <br> catch <br> _:_ -> exception<br> end,<br> {ok, Reply, state}.<br><br>test() gives a compile error: "...variable 'Reply' unsafe in 'try' (line ..."<br>
test2() does not. can anyone clear this up for me?<br>