DM4 p. 207 mentions that “numerals or typewriter symbols… cost as much as
two ordinary letters” for storage within a dictionary word. Does this vary
at all, i.e. are there supposed to be symbols that cost more than 2 letters?
If so, is there any list somewhere of the exact character “cost” of various
symbols?
Note that, using Inform 6.31, it seems like the “%” symbol has a cost of
four characters. At least, the compiler seems to treat them this way when
constructing stored words. Code:
print "</?%?/ stored as ", (address) '/?%?/', ">^";
print "</a/a/a/ stored as ", (address) '/a/a/a/', ">^";
print "<????? stored as ", (address) '?????', ">^";
print "<%%%%% stored as ", (address) '%%%%%', ">^";
print "<%a%a% stored as ", (address) '%a%a%', ">^";
print "<a%a%a stored as ", (address) 'a%a%a', ">^";
produces output:
</?%?/ stored as /?%>
</a/a/a/ stored as /a/a/a>
<????? stored as ????>
<%%%%% stored as %%>
<%a%a% stored as %a%>
<a%a%a stored as a%a>
Is this expected behavior?