RosettaCodeData/Task/Stack-traces/Groovy/stack-traces-3.groovy

17 lines
236 B
Groovy
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import Utils # for buildStackTrace
procedure main()
g()
write()
f()
end
procedure f()
g()
end
procedure g()
# Using 1 as argument omits the trace of buildStackTrace itself
every write("\t",!buildStackTrace(1))
end