[OT] Move semantics in a nutshell
Dukc
ajieskola at gmail.com
Tue Nov 11 15:40:18 UTC 2025
On Monday, 10 November 2025 at 12:42:10 UTC, Timon Gehr wrote:
> Maybe just build your own language, run without an OS, build
> workarounds for any remaining hardware traps into the compiler,
> run on (so-called) bare metal, and discover your own terms for
> describing the wonderful worlds of lack of memory protection
> that will open up before you.
There's an easier way. I suggest playing with an Altair 8800
simulator. I don't recall what it does on things like division by
zero, but in general it has the habit of just keeping going no
matter how wrong your machine code is. It just won't do what you
wanted and might well overwrite your code.
The utility of HLT instruction (or whatever it was, but it's the
machine code equivalent of `assert(false)`) will be evident.
Crashing is a feature, not a bug (but it is a response to a bug).
Also remember, D is designed by an airplane engineer. This means
the program written in it *must* crash before the plane it could
be flying does. Walter sure has refused to alter much lesser
convictions of his than this one.
More information about the Digitalmars-d
mailing list