Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » Formal parameter default value(Component variable as formal parameter default value)
Formal parameter default value [message #1850772] Wed, 16 March 2022 10:58 Go to next message
Eclipse UserFriend
Hi,

I am getting the following error when a component variable is used as default value for a formal parameter:

Error: default value cannot refer to a template field of the component in the `runs on' clause

I could not find anything in the standard forbidding this, or am I missing anything here?

Description:

function f_myFunction( in integer p_par := vc_componentVariable) runs on CompType return Integer {}

type component CompType {
var integer vc_componentVariable := 0;
}


Can you point me where the specs do not allow this? Or if allowed, could that be fixed?

Thanks!

Re: Formal parameter default value [message #1850790 is a reply to message #1850772] Thu, 17 March 2022 02:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

We are checking it, will return to You ASAP.

Nagy Lénárd
Re: Formal parameter default value [message #1850795 is a reply to message #1850790] Thu, 17 March 2022 05:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It seems this is a change in the TTCN-3 standard which is still not supported by Titan.
I have created a GitLab issue https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/587 to cover this topic.

We are handling this issue within the currently running rampup to the latest standard version project.

Regards,
Lenard Nagy
Re: Formal parameter default value [message #1850796 is a reply to message #1850795] Thu, 17 March 2022 05:16 Go to previous message
Eclipse UserFriend
Thanks so much for the quick answer!

Looking forward to a newer version.
Previous Topic:How to get the component name from PORT?
Next Topic:Checking syntax when having virtual folders as source
Goto Forum:
  


Current Time: Thu May 22 09:29:35 EDT 2025

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

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

Back to the top