<p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370/1/library/BSSLAP_Types.ttcn">File library/BSSLAP_Types.ttcn:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370/1/library/BSSLAP_Types.ttcn@496">Patch Set #1, Line 496:</a> <code style="font-family:monospace,monospace">present</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">i never really understood these (omit) (value) (present) modifiers</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">It allows to catch some bugs at compile-time, similar to 'const' in C. Also, it gives one a hint whether the field is optional and can be 'omit'ted, or must be 'present'. 'template (value)' in ts_ templates allows one to pass not only values, but also templates.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">(plus they mess up the universal-ctags ttcn plugin, it doesn't find those that have modifiers)</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Then it's a bug in universal-ctags ;)<br>https://github.com/nokia/ntt can also generate ctags, maybe they're better?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370/1/library/BSSLAP_Types.ttcn@496">Patch Set #1, Line 496:</a> <code style="font-family:monospace,monospace">uint8_t</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">omit doesn't make sense on a ts_, and the ta is not optional</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Sorry, I meant 'template (value)' of course.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370/1/library/BSSLAP_Types.ttcn@522">Patch Set #1, Line 522:</a> <code style="font-family:monospace,monospace">uint16_t</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">but in a ts_ template, a non-optional part does not make sense to be a template??</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">See my comment above. It allows you to pass templates as parameters.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370">change 20370</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6774bb6aefed67ebbfd5da8e52bb463cd6279ed4 </div>
<div style="display:none"> Gerrit-Change-Number: 20370 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 01 Oct 2020 14:22:08 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>