ページの改善
いますぐフォークしてオンライン編集し、このページのプルリクエストを送信します。 Github へのログインが必要です。 これは小さな変更に適しています。 大きな変更を加えたい場合は、通常の cloneの使用をお勧めします。
日本語版について
個人的な学習のために、dlang.orgを翻訳したサイトです。 翻訳に際して、様々なサイトを参考にしています。

core.gc.registry

Contains a registry for GC factories.
Authors:
Martin Nowak
alias GCFactory = GC function();
A factory function that instantiates an implementation of the GC interface. In case the instance was allocated on the C heap, it is supposed to free itself upon calling it's destructor.
The factory should print an error and abort the program if it cannot successfully initialize the GC instance.
nothrow @nogc void registerGCFactory(string name, GCFactory factory);
Register a GC factory under the given name. This function must be called from a C constructor before druntime is initialized.
To use the registered GC, it's name must be specified gcopt runtime option, e.g. by passing , --DRT-gcopt=gc:my_gc_name as application argument.
Parameters:
string name name of the GC implementation; should be unique
GCFactory factory function to instantiate the implementation

Note The registry does not perform synchronization, as registration is assumed to be executed serially, as is the case for C constructors.

GC createGCInstance(string name);
Called during runtime initialization to initialize a GC instance of given name.
Parameters:
string name name of the GC to instantiate
Returns:
The created GC instance or null if no factory for that name was registered