DavidKinder / Inform6

The latest version of the Inform 6 compiler, used for generating interactive fiction games.
http://inform-fiction.org/
Other
204 stars 34 forks source link

DICT_TRUNCATE_FLAG option #272

Closed erkyrath closed 6 months ago

erkyrath commented 7 months ago

As described: https://github.com/DavidKinder/Inform6/issues/271

With this option, dict flag bit 6 is set for any word whose source-code definition is truncated to fit in the VM dictionary. This includes partially-written Z-char sequences.

In --trace dict listings, the truncate flag is shown as "tr".

WIthout this option, bit 6 is set for all verbs (which is the old behavior, redundant with bit 1).

If we truncate only the //p flag (as in LONG_DICT_FLAG_BUG), that does not count as truncating the dict word. We're only interested in whether characters were dropped.

erkyrath commented 7 months ago

I added some test cases to https://github.com/erkyrath/Inform6-Testing/blob/trunc-flag/runtest.py . (Compiling dictnewflagtest.inf with the new flag.)