|
 |
On 7/3/26 16:08, jr wrote:
> iirc, both Bald Eagle and WFP have partial solutions. (no refs, sorry)
FWIW, sample yuqk code using its id_type() keyword.
//---
#version unofficial 3.8; // yuqk
#if (file_exists("version.inc"))
#include "version.inc"
#end
#if (!defined(Fork_yuqk))
#error "This POV-Ray SDL code requires the yuqk fork."
#end
#include "setidtypes.inc" // init global.dictIdTypes dictionary
McrPrintGlobalDictIdTypes(true) // Utility macro to print types
#declare Datas = array mixed;
#declare Datas[0] = <1,2,3>;
#declare Datas[1] = <1,2,3,4>;
#declare Datas[2] = <1,2>;
#if (id_type(Datas[2])=global.dictIdTypes.v2d)
#debug "\nDatas[2] is a 2D vector\n"
#end
#if (id_type(Datas[0])=global.dictIdTypes.v3d)
#debug "\nDatas[0] is a 3D vector\n"
#end
#if (id_type(Datas[1])=global.dictIdTypes.v4d)
#debug "\nDatas[1] is a 4D vector\n"
#end
#debug "\n"
#error "No objects. Testing SDL."
//---
Bill P.
Post a reply to this message
|
 |