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
This was originally posted by Zack Zhang here on March 1, 2024.
Hi Folks,
We have some SBE questions. Are the following allowed per SBE standard?
Two composites referencing each other, so the referred type in one “Engine” is actually declared after the first usage. Since the booster field could be optional, the nestedness could stop at any arbitrary depth with the null value for “booster_val_field”
Assuming nested ref tag is allowed (please kindly point out if it’s not or unlikely in practice), a composite referencing itself. It could stop following the same null value logic as above.
<compositename="Engine">
<typename="value"primitiveType="int64"/>
<refname="booster"type=" Engine"presence="optional"/>
</composite>
```xml
3. (not related to ref tag) Is it okay for a spec to have a composite/type that is completely unreferenced in any message? For example `<fieldname="modelYear"id="2"type="ModelYear"/>` is removed from the “Car” message, but remains declared inside “types”.
I sincerely appreciate your help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This was originally posted by Zack Zhang here on March 1, 2024.
Hi Folks,
We have some SBE questions. Are the following allowed per SBE standard?
Beta Was this translation helpful? Give feedback.
All reactions