You can roll your own tagged union instead. The S struct can store long and byte[], S.ptr is a pointer to the data.
On Tuesday, 7 February 2012 at 00:39:00 UTC, Era Scarecrow wrote:I've been using Variant with LuaD for some time. Sorry it isn't what you need but hopefully you'll know when it will be useful.
Unfortunately I'd need to reference a buffer for the known structured types. Variant seems far more useful for making an interpreted language, than for my purposes.