November 30 2006

The essence of graphics is the relation.  In fact, graphics is just used to express or describe those
relationship among entities.  In discrete mathematics, symbol usual are used as a representation of
a entity or a virtual concept (such as set, element, and so on).  As a matter of fact, when mathematicians
study the theory of relation, they do not concern about those entities.

  What is relation?  It exists everywhere as Buddha.  Relation reflexes a link between the two or more two
things.  It sounds old.  However, it also is truth.  In my view, relation is also objective.  So, mathematics,
philosophers can discuss, study it.  Although we can define or draw some isolated points as representing
our imagining solo things, in reality it is not true.  A greate Greece philosopher said, the world is the one.
In a sense, he may tell us the truth.

  Uncaught exceptions

  If none of the exception handlers following a particular block matches an exception, that try exception
moves to the next-higher context, that is, the function or block surrounding the try block that failed to
catch the exception.  (The location of this higher-context block is try not always obvious at first glance.)
This process continues until, at some level, a handler matches the exception.  At that point, the exception
is considered “caught,” and no further searching occurs.

  If no handler at any level catches the exception, it is "uncaught" or "unhandled."  An uncaught exception
also occurs if a new exception is thrown before an existing exception reaches its handler - the most common
reason for this is that the constructor for the exception object itself causes a new exception.

  terminate()

  If an exception is uncaught, the special function is automatically called.  Like terminate(), terminate
is actually a pointer to a function.  Its default value is the Standard C unexpected() library function,
which immediately exits the program with no calls to the normal termination functions (which means that
destructors for global and static objects might not be called).

  No cleanups occur for an uncaught exception; that is, no destructors are called.  If you don’t wrap your
code (including, if necessary, all the code in) in a try block followed by main() handlers and ending with
a default handler () to catch all exceptions, then you will catch(...) take your lumps.  An uncaught exception
should be thought of as a programming error.

  You can install your own function using the standard function, terminate() set_terminate() which returns
a pointer to the function you are replacing, so you can restore it terminate() later if you want.  Your custom
must take no arguments and have a return terminate() void value.  In addition, any handler you install must
not return or throw an exception, terminate() but instead must call some sort of program-termination function.
If is called, it terminate() means the problem is unrecoverable.

  Like unexpected(), the terminate() function pointer should never be null.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值