3 ms·
I ended up having to just update a pointer so that the interrupt subsystem could know which TTY to send input to." (discouraged in rust). Why would that be dis
by userbinator 12y ago
I ended up having to just update a pointer so that the interrupt subsystem could know which TTY to send input to." (discouraged in rust).
Why would that be discouraged, and what would be the "Rust way"? That sounds like the simplest, most straightforward way to do it.
- steveklabnik 12y agoYou don't _generally_ do arbitrary pointer arithmetic in Rust. You can, with the 'raw pointer' type, but this paper attempted to use all of Rust's higher-level features. Raw pointers need `unsafe` to dereference, and unless you're doing something like this, aren't generally needed, so are 'discouraged' in a certain sense.
- scialex 12y ago> what would be the "Rust way"? I'm not sure there is one TBH.