Commits

Kota UENISHI  committed f2a9d7c

deeper stack case

  • Participants
  • Parent commits 133de32

Comments (0)

Files changed (1)

File erlang/exception.erl

 
 main()->
     try
-	somexcp()
+	somexcp(10)
     catch
 	error:Reason->
 	    erlang:display(Reason);
 	    erlang:display(Thrown)
     end.
 
-somexcp()->
+somexcp(0)->
 %    1/0.
-    throw(throwable1).
+    throw(throwable1);
+somexcp(N) when is_integer(N), N>0 ->
+    somexcp(N-1).
+