ページの改善
いますぐフォークしてオンライン編集し、このページのプルリクエストを送信します。
Github へのログインが必要です。 これは小さな変更に適しています。
大きな変更を加えたい場合は、通常の cloneの使用をお勧めします。
日本語版について
個人的な学習のために、dlang.orgを翻訳したサイトです。
翻訳に際して、様々なサイトを参考にしています。
rt.ehalloc
Exception allocation, cloning, and release compiler support routines.
License:
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE)
Authors:
Walter Bright
Source rt/ehalloc.d
- Throwable
_d_newThrowable
(const TypeInfo_Classci
); - Allocate an exception of type
ci
from the exception pool. It has the same interface as rt.lifetime._d_newclass(). The class type must be Throwable or derived from it, and cannot be a COM or C++ class. The compiler must enforce this.Returns:default initialized instance of the type - nothrow void
_d_delThrowable
(Throwablet
); - Delete exception instance
t
from the exception pool. Must have been allocated with _d_newThrowable(). This is meant to be called at the close of a catch block. It's nothrow because otherwise any function with a catch block could not be nothrow.Input t = Throwable
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on Wed Nov 23 08:33:07 2022