cardillan / mindcode

A high level language for Mindustry Logic and Mindustry Schematics.

Home Page:http://mindcode.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Properties cannot be invoked directly on function return values

cardillan opened this issue · comments

The following code doesn't compile:

getlink(index).enabled = false

It is necessary to rewrite it to

device = getlink(index)
device.enabled = false

Supporting direct property access will require updating ANTLR syntax.