Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » using optional implicit omit(implicit omit)
using optional implicit omit [message #1851445] Wed, 06 April 2022 03:14 Go to next message
Bipin V is currently offline Bipin VFriend
Messages: 6
Registered: April 2022
Junior Member
Hi,

When I make with code

var MyRecord x2 := { field1 := 2 } with { optional "implicit omit" }


The compiler gives the error:

error: at or before token `with': syntax error, unexpected WithKeyword


I took the example from this post: https://www.eclipse.org/forums/index.php/m/1804479/?srch=implicit+omit#msg_1804479

Thanks,
Bipin
Re: using optional implicit omit [message #1851480 is a reply to message #1851445] Wed, 06 April 2022 12:17 Go to previous messageGo to next message
Adam Knapp is currently offline Adam KnappFriend
Messages: 54
Registered: November 2020
Member
Hi Bipin,

These are the restrictions related to 'optional "implicit omit"' attribute (see Chapter 2. TTCN-3 Limitations in this
Version from our reference guide):

  • The optional "implicit omit" attribute is not applied recursively.
  • The optional "implicit omit" attribute can be applied directly to global value and template
    definitions, but not to local value and template definitions.
  • The optional "implicit omit" attribute can be applied to a module, in which case it will have
    effect on global value and template definitions in the module, and local value and template
    definitions in the module, with the exception of (local) variable definitions


I assume 'var MyRecord x2' is a local variable in your example, therefore it won't work.

EDIT:
One addition, the attribute is now applied recursively from this commit.

[Updated on: Wed, 06 April 2022 12:52]

Report message to a moderator

Re: using optional implicit omit [message #1851507 is a reply to message #1851480] Thu, 07 April 2022 06:07 Go to previous message
Bipin V is currently offline Bipin VFriend
Messages: 6
Registered: April 2022
Junior Member
Thanks Adam.
Previous Topic:Use of octetstring in LENGTHTO
Next Topic:Titan 8.2.0 release notification
Goto Forum:
  


Current Time: Sun Oct 13 16:22:49 GMT 2024

Powered by FUDForum. Page generated in 0.04113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top