mirror of https://github.com/tbklang/tlang.git
Investigate isSameType(Type, Type)
#96
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
Dependencies
No dependencies set.
Reference: tlang/tlang#96
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?
What is this?
Look at how
isSameType(Type type1, Type type2)
is implemented.Question 1
Is var.type = var2.type alright, referencing it rather than a refercne to a copy?
We should never change types so I I don't see why it would be wrong?
Bug 1 -
simple_pointers.t
failureIt would seem that we get the following segmentation fault when dealing with pointers - has to do with
getType(<pointer>)
I think: ❎👉 Correction: It is the function call that has no type yet set:
I'm dumb, we must
popType()
smh:Investigate `isSamtType(Type, Type)`to Investigate `isSameType(Type, Type)`Okay, so this method should probably be very dumb and just check equality as it does I guess. We just need to ensure it does that.
isSameType(Type t1, Type t2)
is meant to doI should close this lmao