POV-Ray : Newsgroups : povray.newusers : Mixed array : Re: Mixed array Server Time
7 Jul 2026 11:42:17 EDT (-0400)
  Re: Mixed array  
From: William F Pokorny
Date: 5 Jul 2026 12:07:33
Message: <6a4a8145$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.