xmlDelete() degenerates clear(). "clear doc" where typeof(doc)=="XMLDoc" should call transparently xmlDelete(doc)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
Multiplying specific functions clearing variables and their pointed contents according to their typeof does not improve Scilab's design. From the user point of view, there is no reason to not use "clear" to delete a XML handle of type 'root' and its content. Actually, after deleting a XML root handle, there is no way to recover it.
[another similar point: if "doc" is a XML handle and then we redefine the variable with:
doc = %pi;
Does this instruction priorly free the memory from the former XML content? It should, as with other type of variables.
]
Thanks
OTHER INFORMATION:
------------------
* Then xmlDelete() should become a pure utility and become undocumented.