Skip to content

External Function Calls #147

@dschwartznyc

Description

@dschwartznyc

Problem Description:

The Rosetta runtime allows functions to be marked with [codeImplementation], indicating logic provided by the host language. The Python generator does not yet emit the syntax to delegate these calls to Python external implementations.

Steps to Reproduce:

Example Rune code: import-overlap.rosetta

func MyFunc:
  [codeImplementation]
  output:
    result int (1..1)
  1. Define a Rosetta function with the [codeImplementation] annotation.
  2. Attempt to generate Python code for this function.

Expected Result:

The generator should emit a call to a standard Python registry or dispatcher where the user can provide the implementation.

Actual Result:

The generator produces an empty body or fails to map the implementation.

Additional Context:

Critical for CDM validation functions like ValidateFpMLCodingSchemeDomain.

Sub-issues

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions