<div dir="auto">Apologies, I meant non-negative integer plus sentinel.</div><div dir="auto"><br></div><div dir="auto">Oops!</div><div dir="auto"><br></div><div dir="auto">John </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2024 at 9:26 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Dear Myeong,<div dir="auto"><br><div dir="auto">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.<div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Is this what the type int32_t[] is?</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">John </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div></div>
</blockquote></div></div>