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
Yes, implicit when the (allocatable) variable goes out of scope. I think dicts, lists, strings should have "allocatable" set, and then we should add some mechanism into libasr that both LFortran and LPython can use to automatically insert the "ImplicitDeallocate" ASR nodes.
And del would delete it right away explicitly, just like deallocate in LFortran.
Activity
czgdp1807 commentedon Aug 19, 2022
The deallocation should be implicit (done by LPython), explicit (done by user via
delstatements), right?certik commentedon Aug 20, 2022
Yes, implicit when the (allocatable) variable goes out of scope. I think dicts, lists, strings should have "allocatable" set, and then we should add some mechanism into libasr that both LFortran and LPython can use to automatically insert the "ImplicitDeallocate" ASR nodes.
And
delwould delete it right away explicitly, just likedeallocatein LFortran.