3 ms·
I wouldn't write a config file parsing library for C programs without interning, so == between two pointers could be used to test for keyword equality. Interni
by kazinator 6y ago
I wouldn't write a config file parsing library for C programs without interning, so == between two pointers could be used to test for keyword equality.
Interning is used outside of LIsp. See the XInternAtom function in the X Window system:
Atom XInternAtom(
Display *display,
char *atom_name,
Bool only_if_exists
);
or RegisterClass in Win32:
ATOM RegisterClassA(
const WNDCLASSA *lpWndClass
);
- reitzensteinm 6y agoI wouldn't either :)