rust-hosted-langs / book

Writing Interpreters in Rust: a Guide
https://rust-hosted-langs.github.io/book/
Creative Commons Attribution 4.0 International
479 stars 27 forks source link

Disambiguate nil and integer 0 in tagged pointers #52

Closed pliniker closed 2 years ago

pliniker commented 2 years ago

Fixes #51 the easiest way by shuffling the tag ids such that nil (pointer value 0) and numeric 0 (with tag 0x0) are distinct values.