mirror of https://github.com/tbklang/tlang.git
Seperate DNode pools causing issues #48
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tlang/tlang#48
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
We have a seperate
nodePool
whenever we do function definitions, this should be some sort of shared pool. The issue we run into when we have issue #46 sorted out is that we actually get a newvarDecDNode
and of course it hans't yet been visited.I really recommend we do the whole dependency thing one-shot, somehow. I think we would need to make a "Function definition" instruction of some sorts, then the
CodeEmitter
can pick up on this and emit the needed things.Dependencyiesto Seperate DNode pools causing issuesThe fix
generalPass()
call that was being done on globals queue pass, just left theaddFuncDef(tc, functionName)
thing, asgeneralPass()
happens on funciton bodies in type checker later.DNode[] pool
->static DNode[] pool
Going with the fix above ☝️
Fixed with commit
2a12c310a66e42783a524cd58f040454c1c36197
on branchvardec_varass_dependency