Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

std::type_index for class IDs

オープン
#1,295 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
backend

調査の方向性

この issue では、ファイル、テスト、エントリーポイントが指定されていません。まず hxcpp の type-ID と例外処理の内部実装を追跡し、その後、std::type_index と typeid が hx::Throwable および externed hx::Object サブクラスにどのような影響を与えるかを評価してください。この issue では、具体的な完了基準は定義されていません。

索引モデルが issue の本文から書いたものです。

説明

I've been thinking about what using the C++11 std::type_index in combination with typeid would allow if that were to be used as the basis for type IDs instead of IDs generate by the haxe compiler.

Now that the cpp.ManagedType metadata allows externing custom hx::Object subclasses it would be nice to have a hx::Throwable class which all exceptions (including haxe.Exception) inherit, this would mean hxcpp internals wouldn't be throwing around strings. The problem with this is that exceptions require type checking to work and with the haxe compiler generating type IDs having that base class implemented in hxcpp makes things a bit of a pain. If std::type_index were used type checking against custom hx::Object subclasses suddenly becomes much more feasible.

This could also open up the possibility of the haxe compiler generating reflection / closure support for externed hx::Object subclasses to save the user needing to hand write it to work with the existing setup.

主要言語
C++
スター
330
フォーク
230
平均マージ
1日 6時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HaxeFoundation/hxcpp のほかの issue

HaxeFoundation/hxcpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。