Would it be possible to have the assignment of a null value to actually assign null to the variable?
Instead of
Without being able to assign null, we cannot release the assigned String so it will be Garbage Collected.
Not sure if this applies to other things too, where normally you would assign null, knowing that the variable will be GC'd at some stage and free up the memory.
Instead of
B4X:
Dim s As String
...
s = "fred"
...
s = null ' this results in s containing 'null' as a string
...
Without being able to assign null, we cannot release the assigned String so it will be Garbage Collected.
Not sure if this applies to other things too, where normally you would assign null, knowing that the variable will be GC'd at some stage and free up the memory.