Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

std::type_index for class IDs

Aperta
#1,295 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

La issue non indica file, test o punti di ingresso. Inizia tracciando gli interni di hxcpp relativi al type-ID e alla gestione delle eccezioni, quindi valuta come std::type_index e typeid influirebbero su hx::Throwable e sulle sottoclassi externed di hx::Object; la issue non definisce un criterio concreto di completamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
330
Fork
230
Merge medio
1g 6h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HaxeFoundation/hxcpp

Tutte le issue di HaxeFoundation/hxcpp

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.