Open marcgurevitx opened 1 month ago
In the current C++ implementation of RawData there's a bug: Methods with self param accept anything that has a _handle, even an open file object.
self
_handle
> f = @RawData.byte > f file.open("x.ms") // doesn't raise an error ... ///nonsense
This PR makes it raise an index error (just like in Mini Micro).
(edit: corrected the snippet.)
In the current C++ implementation of RawData there's a bug: Methods with
self
param accept anything that has a_handle
, even an open file object.This PR makes it raise an index error (just like in Mini Micro).
(edit: corrected the snippet.)