summaryrefslogtreecommitdiff
path: root/examples/unit
diff options
context:
space:
mode:
authorTom Harley2019-10-28 22:25:54 +0000
committerTom Harley2019-10-28 22:25:54 +0000
commit85093de7415e9410dc5917f8ef6ac489b8198b42 (patch)
treee19ae85366e14f2e880e4c8f204090afb97a7fbb /examples/unit
parentImplement recursive definition support (diff)
downloadsinter-85093de7415e9410dc5917f8ef6ac489b8198b42.tar.gz
sinter-85093de7415e9410dc5917f8ef6ac489b8198b42.zip

Add struct type definitions

Struct-like types can now be created using the type builtin. This creates a constructor function as well as a function for accessing each of the struct’s properties.

LLVM’s type checking makes using these structs a little awkward: they currently cannot be returned by any functions (except the constructor). The aim is to box everything, so that functions can return values they don’t know much about.

Diffstat (limited to 'examples/unit')
0 files changed, 0 insertions, 0 deletions