Hello all,

I just realized (because John showed me) that this bug report: https://bugs.gnucash.org/show_bug.cgi?id=796137
and this mail thread are related.

regards,

Christoph

Am 2018-07-19 15:42, schrieb Derek Atkins:
John Ralls <[email protected]> writes:

Funny... 15+ years ago it WAS an Enum, but changed to a string because
we wanted to enable searching on plug-in modules.

OK, and enums are immune to run-time changes implied by a plugin
module, but there are better ways than strings to tag types. Glib
provides Gquarks for just this purpose and even provides a function to
get one on a GObject's type name:
g_type_qname(G_OBJECT_TYPE()).

These APIs did not exist in 2002 when this code was written.

C++ obviously has a different type model and we'll need to
rework/replace QofID, QofContainer, and QofQuery to match it so
changing them now to use quarks instead of strings would be wasted
effort.

*nods*

Regards,
John Ralls

-derek
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to