You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently often code like x: i32 = 5 and x: i32[3] = empty(3) and such fails.
These are taken care of using expr? symbolic_value, expr? value members of Variable_t. We should rename these, perhaps to initial_value or something like that to make it clear, and document what the difference is between the two (I forgot).
We should go over all combinations of such initializations and make sure they all work, I think there are quite a few cases that don't work yet.
There is one more complication. In Fortran, the above is used for code like:
integer :: x = 5
Which in Fortran implies integer, save :: x = 5, the save attributed is represented by the storage_type = Save member of Variable_t. For Python, code like x: i32 = 5 should still store the initial value in Variable_t, but use storage_type = Default. Then in the LLVM backend we need to support both storage_types.
The text was updated successfully, but these errors were encountered:
Currently often code like
x: i32 = 5
andx: i32[3] = empty(3)
and such fails.These are taken care of using
expr? symbolic_value, expr? value
members ofVariable_t
. We should rename these, perhaps toinitial_value
or something like that to make it clear, and document what the difference is between the two (I forgot).We should go over all combinations of such initializations and make sure they all work, I think there are quite a few cases that don't work yet.
There is one more complication. In Fortran, the above is used for code like:
Which in Fortran implies
integer, save :: x = 5
, thesave
attributed is represented by thestorage_type = Save
member ofVariable_t
. For Python, code likex: i32 = 5
should still store the initial value inVariable_t
, but usestorage_type = Default
. Then in the LLVM backend we need to support bothstorage_type
s.The text was updated successfully, but these errors were encountered: