Skip to content

Global Namespace Operator for functions #1447

@volsa

Description

@volsa

Is your feature request related to a problem? Please describe.
#1442 introduces the global namespace operator for variables. Codesys does support the operator on functions also, however, meaning the following is code is valid

FUNCTION_BLOCK fb
  // ...
  METHOD foo
    // ...
  END_METHOD


  // ...
  .foo(); // This will call the function `foo` defined in the global namespace, if it exists
  // ...
END_FUNCTION_BLOCK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions