No hex literals #47

Closed
opened 2026-10-08 18:43:08 +02:00 by alex-eg · 0 comments
Owner

0x80 reaches C as |0x80| (the Scheme printer escaping a symbol
that looks numeric), and #x80 is rejected by the reader:
"Unsupported # syntax: #\x". Masks and code points have to be written
in decimal, which hurts in bit-twiddling code: (& c 224) instead of
(& c 0xE0).


Found with sexc dfafe8b while building vs-map-viewer (from its Sex-field-notes.org).

`0x80` reaches C as `|0x80|` (the Scheme printer escaping a symbol that looks numeric), and `#x80` is rejected by the reader: "Unsupported # syntax: #\x". Masks and code points have to be written in decimal, which hurts in bit-twiddling code: `(& c 224)` instead of `(& c 0xE0)`. --- Found with sexc `dfafe8b` while building vs-map-viewer (from its `Sex-field-notes.org`).
alex-eg added the feature label 2026-10-08 18:43:08 +02:00
Sign in to join this conversation.