Skip to content

Titan does not support the open type

Summary

Titan does not support the open type (any) as described in

Steps and/or TTCN-3 code to reproduce

In a TTCN-3 module, insert

external function fx_printf(charstring p_format, any p_data);

What is the current bug behavior?

Titan cannot parse any

What is the expected correct behavior?

This should be translated in a way that the corresponding function defined in C++ takes a character string as its first parameter and an arbitrary type as its second parameter.

Relevant logs and/or screenshots

../src/exfn.ttcn:3.50-52: error: at or before token `any': syntax error

Possible fixes

The ANY type shall be defined in the Titan framework, which can be arbitrarily used for whatever TTCN-3 type data element is provided as the 2nd actual parameter. Probably architectural planning is needed for this. Let's talk about this some time.

Titan version

8.1.0

Platform details (OS type and version)

Microsoft Windows 10 Enterprise 10.0.19042

/cc @aknappqwt @mmagyari