开发者

Stack-related terms

开发者 https://www.devze.com 2023-01-05 23:07 出处:网络
There is a l开发者_如何学编程ot of use of \"up/down the stack\" and similar terminology on this site.

There is a l开发者_如何学编程ot of use of "up/down the stack" and similar terminology on this site.

What do the following mean?

  • Tear down the stack (in an exception)
  • At the top of the stack (this must where the recent method calls are, as that is the order of the stack when I see them in .NET exceptions) (Thus, bottom of the stack is vice versa)


A lot of it depends on context. "Up" and "Down" tend to be used rather interchangably - for example, "tearing down" the stack in the case of an exception basically means taking off all the method calls until the relevant catch block is reached, while an exception "propagating up" the stack means pretty much the same thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号