3 ms·
Qt is capable of lazy typing in C++ using QObject and QVariant, though it also adds its own meta-object compiler on top of the C++ compiler.
by nitrogen 14y ago
Qt is capable of lazy typing in C++ using QObject and QVariant, though it also adds its own meta-object compiler on top of the C++ compiler.
- apaprocki 14y agoWhich is really no different than using GObject and GValue from GLib / Gnome world. (Even using a meta-object GOB compiler :))
- nitrogen 14y ago... or using a union with an enum in plain C: struct data { void *data; size_t length; }; union value { char *zstr; int intgr; float flt; struct data *data; }; enum type { STRING, INTEGER, FLOATING, DATA, };