<div><div dir="auto">This link discusses many options for C++. If method chaining is not preferred, how about examples with “auto “? See link. I don’t really know about auto, since my C++ knowledge dates from the 90s.</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://stackoverflow.com/questions/2279180/does-c-have-with-keyword-like-pascal" target="_blank">https://stackoverflow.com/questions/2279180/does-c-have-with-keyword-like-pascal</a></div><br></div></div><div dir="auto">I don’t mind code generation, indeed, if void is promoted in the standard, I would be happy, because my generator and parser already work.</div><div dir="auto"><br></div><div dir="auto">John</div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 15, 2024 at 3:29 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">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)">I had a look at: <div><a href="https://github.com/Web3DConsortium/X3D/blob/master/ISO-IEC19777/ISO-IEC19777-4/ISO-IEC19777-4v3.3/ISO-IEC19777-4v3.3-IS/Part04/abstracts.html" target="_blank">https://github.com/Web3DConsortium/X3D/blob/master/ISO-IEC19777/ISO-IEC19777-4/ISO-IEC19777-4v3.3/ISO-IEC19777-4v3.3-IS/Part04/abstracts.html</a></div><div dir="auto"><br></div><div dir="auto">I have some comments from a usability position.</div><div dir="auto"><br></div><div dir="auto">For example, not returning “this” from setters, addChild and other adders (I think only addChild does not exist), while good for debugging, requires a lot more duplicated code, in the form of repeated use of variable names in the code. Please make me aware of examples if this is not required.</div><div dir="auto"><br></div><div dir="auto">Here is an HAnim example:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/cplusplus/net/coderextreme/data/JinLOA4.cpp" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/cplusplus/net/coderextreme/data/JinLOA4.cpp</a></div><div dir="auto"><br></div><div dir="auto">I don’t know if C++ contains the concept of Pascal’s “with” (creating a context or namespace where repeated use of a variable name is not required) and should would be documented in any C++ examples produced by the Consortium (IMO).</div><div dir="auto"><br></div><div dir="auto">Is there going to be an X3D XML to C++ stylesheet converter to give best practices, or are we on our own?</div></div><div dir="auto"><div dir="auto"><br></div><div dir="auto">John </div><br></div>
</blockquote></div></div>
</div>