mirror of https://github.com/tbklang/tlang.git
Binary Operators support for non-Integer types #141
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 18 minutes 5 seconds
Due Date
deavmi
18 minutes 5 seconds
Dependencies
No dependencies set.
Reference: tlang/tlang#141
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?
Currently when doing typechecking we handle these cases:
Ptr+Integral
Integral+Ptr
Integral+Integral
But the last case is not handled (we show various examples):
Ptr+Ptr
Anything else == anything else
Note
Once it is done we will then be able to remove the
isSameType()
call, thechosenType
logic will stay ofc:I have now added support for:
As in, np explicit cast is required for the
i == 0
(as in nocast(byte)0)
) (same goes for thei-1
(the1
). What we have now is implicit casting for the literal value instructions (LiteralValue
) which helps a lot.Added in commit
a73e8308db33a8ac0203c49df01bb9078c89de70
Since we have merged #115 into
vardec)varass_dependency
we will now considfer this there.feature/universal_coercionto vardec_varass_dependency