karuta icon indicating copy to clipboard operation
karuta copied to clipboard

Unable to access imported variables

Open TenzinCHW opened this issue 4 years ago • 0 comments

#10 So in an attempt to solve the problem of a ticker process affecting other processes, I tried to move it out of the file. However, I am unable to access imported variables inside processes E.g. slowclk.karuta:

shared slowclk #0 = 0

import.karuta:

import "slowclk.karuta" as sc

process main() {
    print(sc.slowclk)
}

Running karuta run --duration 10 import.karuta, I get the following error.

U:Failed to find object: sc
U:Failed in compilation of method: main
U:member not found: sc

TenzinCHW avatar Nov 06 '20 10:11 TenzinCHW