Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » using optional implicit omit(implicit omit)
using optional implicit omit [message #1851445] Tue, 05 April 2022 23:14 Go to next message
Eclipse UserFriend
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 08:17 Go to previous messageGo to next message
Eclipse UserFriend
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 08:52] by Moderator

Re: using optional implicit omit [message #1851507 is a reply to message #1851480] Thu, 07 April 2022 02:07 Go to previous message
Eclipse UserFriend
Thanks Adam.
Previous Topic:Use of octetstring in LENGTHTO
Next Topic:Titan 8.2.0 release notification
Goto Forum:
  


Current Time: Wed Apr 23 18:35:22 EDT 2025

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

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

Back to the top