You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling this function with pointer types is UB if followed by a setComponents that includes any of the pointer types in get.
The only way I can think of to eliminate this footgun would be to remove the ability to request pointers both in getComponent(s) and queries. The use would then have to call setComponents which probably will be slower and more verbose.
For documenting the footgun a entry in the readme and in the doc-comments for getComponent(s) and query.next
The text was updated successfully, but these errors were encountered:
There is a very big footgun with getComponent(s).
Calling this function with pointer types is UB if followed by a setComponents that includes any of the pointer types in get.
The only way I can think of to eliminate this footgun would be to remove the ability to request pointers both in getComponent(s) and queries. The use would then have to call setComponents which probably will be slower and more verbose.
For documenting the footgun a entry in the readme and in the doc-comments for getComponent(s) and query.next
The text was updated successfully, but these errors were encountered: