[x3d-public] C++ non-negative integer plus sentinel (-1) array type

John Carlson yottzumm at gmail.com
Thu Apr 4 19:35:36 PDT 2024


Apologies, I meant non-negative integer plus sentinel.

Oops!

John

On Thu, Apr 4, 2024 at 9:26 PM John Carlson <yottzumm at gmail.com> wrote:

> Dear Myeong,
>
> Would it be valuable to create a C++ type for “non-negative integer with a
> sentinel (-1)” array?   I’m working on a parser, and I realize this is a
> subset of integers, and it might slow down the parser, or the sentinel
> might not even be detectable.
>
> The idea would be to create another type to recognize for triangle and
> polygon index fields, and the type is declared at the front of the array,
> so parsing is a lot easier, and provide extra checks on source code.
>
> Is this what the type int32_t[] is?
>
> Thanks,
>
> John
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240404/2928220b/attachment.html>


More information about the x3d-public mailing list