HELP XtN Jonathan Meyer, Aug 1990 XtN is a macro for managing fixed address string constants used by the X toolkit. It takes one argument, and returns a fixed-address null-terminated string version of that argument. So (XtN abc) => ** abc (XtN abc).isstring => ** true (XtN abc).explode => ** 97 98 99 0 XtN uses a cache to store these strings, so repeated use of the same string does not cause additional overhead. This means that string constants created using XtN will be exactly equivelant, so (XtN abc) == (XtN abc) => ** true For debugging purposes, there is a switch called chatty_XtN which, if true, produces a message when new strings are added to the cache, so true -> chatty_XtN; XtN new ;;; DECLARING XtN STRING CONSTANT new There are XtC and XtR macros as well, which share the same string cache with XtN, but print out different messages if chatty_XtN is true: XtC New => ;;; DECLARING XtC STRING CONSTANT New ** New XtNDeclare ---------- The XtN library provides the procedure XtNDeclare for declaring a list of strings with chatty_XtN locally set to false. This is useful if you wish to declare a collection of strings at once: XtNDeclare([width height translations foreground background); XtN width ... --- C.x/x/pop/help/XtN --- Copyright University of Sussex 1990. All rights reserved. ----------