Skip to content

Externals provide an ability to bypass module acyclicity #33

Description

@ProgMiner

Example

File A.lama:

import B ;
var x = 1 ;
public fun getX () { x }
printf ("A: %d\n", x)

File B.lama:

external fun getX () ;
printf ("B: %d\n", getX ())

Command line:

lamac -I . -c B.lama && lamac -I . A.lama
./A

Result:

B: 0
A: 1

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