medley
medley copied to clipboard
HPRINT can't dump font
HPRINT can't dump a Font because the FONTCHARSETVECTOR is an untyped ARRAYBLOCK. Probably EQUALALL AND COPYALL need review too.
Originally posted by @masinter in https://github.com/Interlisp/medley/issues/506#issuecomment-945195253
There is really old code in HPRINT1. There are RESETLIST and RESETFORMs that are deangerouls when running with breakpoints since they affect global state rather than per-process free variables.
For some good reason I'm sure, the FONTDESCRIPTOR record has an arrayblock
FONTCHARSETVECTOR which is a raw arrayblock with no type number or name.
INSPECT/TYPELESS is how it none-the-less is able to INSPECT an arrayblock but I'm less certain about writing it out so it can be read back in again. Maybe fixing COPYALL and EQUALALL first? Add another category in HPRINTRDTBL?
#484 covers this
Hprint fails now (HPRINT CLISPARRAY T) so reopening this for reexamination