allow aliasing of registers in variables if we explictly ask for it (#711)

This commit is contained in:
water111
2021-07-22 20:14:08 -04:00
committed by GitHub
parent 36ccf341a9
commit 09c09ce35f
4 changed files with 48 additions and 13 deletions
+2 -1
View File
@@ -180,4 +180,5 @@
- Fields with type `(inline-array thing)` can now be set in statics.
- `meters`, `degrees`, and `seconds` types have been added.
- Bitfields with `symbol` fields used in an immediate `(new 'static ...)` can now define the symbol in the `new` form.
- Bitfields with `float` fields used in an immediate `(new 'static ...)` in code can use a non-constant floating point value.
- Bitfields with `float` fields used in an immediate `(new 'static ...)` in code can use a non-constant floating point value.
- Multiple variables assigned to the same register using `:reg` in `rlet` (or overlapping with `self` in a behavior) will now be merged to a single variable instead of causing a compiler error. Variables will have their own type, but they will all be an alias of the same exact register.