Cannot reference function types from variables #90
Labels
area: check
Code validation
area: identify
The "identify pass" - the ScopedId De Brujin index, or "ensure name exists in scope"
area: llvm
Usage of the LLVM compiler library
issue: bug
Bug report
priority: low
Consider higher priority issues first
status: on-hold
PR contributor away or more discussion needed
Consider the protosnirk program
We emit
for the line
let bar = main
.From an LLVM perspective, we assume all variables can have
alloca
s created for them and that they can be loaded from them. So we would need to handle the case of variable-sized types or a routine for determining the size of analloca
.From a usability standpoint, C is the only language that I can think of that supports function pointers but not closures, so it might be a good idea to wait until we have those first...
The text was updated successfully, but these errors were encountered: