[x3d-public] Requested enhancement to C++ SAI
John Carlson
yottzumm at gmail.com
Mon Apr 1 15:26:07 PDT 2024
Dear Myeong,
Here is a requested enhancement to C++ SAI:
1. Return "this" from set...() methods instead of void.
2. Return "this" from add...() methods instead of void.
This will make the C++ SAI more like the Java SAI, X3DJSAIL.
I do not know about any security implications of this, but if you are
calling with "this", then it's no more of a security hole than returning
void.
I thought about addChild versus addChildren, and realized I could probably
use addChildren with one child parameter. My suggestion will allow for
more heterogeneous add...() method calls with the above, and will ensure
child order. AddChildren is still available for those who want to do
batching.
Above all, this will allow for more styles of programming.
Thanks for considering this,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240401/4ff28846/attachment.html>
More information about the x3d-public
mailing list