Kers says:
>The way I do this in C would generalise nicely to Pop.
>
>In a C program I am writing, the messages are all literals of the form
>
> MM("this is a message with insert <x>")
>
>MM is the identity macro; its purpose is to tag the message text. At some
It is also easy to redefine it to do other things, like using Unicode
strings instead of ASCII etc.
>(d) but the messages take up space in the executable all the time, even
>if you always use French or Italian or German or Dutch or Finnish or
American
>spelling.
Not really a problem, nowadays, since a megabyte of string space would
correspond to a whole book of message text.
>(e) the lookup is a performance overhead.
It's not likely to be a significant overhead.
--jlc
|