Announcement

Collapse
No announcement yet.

Ambivalent Code Template Names

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ambivalent Code Template Names

    Hello,
    currently using mirth 3.4.2.

    Following situation:

    "Library 1" has a Template function test()
    "Library 2" has a Template function test()

    I can add both as dependencies to a new channel.
    The channel then uses the one from "Library 2" (presumably because it is the last one to be parsed)

    However, this is problematic because one cannot be sure which code is really executed, and if there is a sufficient amount of code templates, it becomes progressively harder to avoid collisions.

    Do newer Versions of Mirth drop a warning/error in case one function overrides another in a channels' template scope?

    Kind Regards
    pmt

  • #2
    If it is common for you to have functions with the same name in multiple libraries, you might want to add the functions to library objects instead of adding them to the global namespace.

    Comment

    Working...
    X