Use a single File type in the VM
This has three benefits:
-
The VM becomes a bit simpler.
-
We no longer need to cast types, and rely on dynamic typing in
std::fs::raw
. -
This makes it possible to define ReadOnlyFile and the other types like normal objects. This in turn will make it easier to migrate them to the upcoming objects setup where all attributes are defined explicitly in the
object
body.