Defining an I7 text constant in I6

To make a long story short, I need to define the initial value of a text variable using Inform 6.

I seem to remember there was a special syntax for this, something like:

Global my_text_var = TEXT_TY_Packed_Storage "my text";

But I can’t remember it well enough to search for it, and can’t find it documented anywhere.

Does anyone remember how this syntax works?

1 Like

See §27.19. Longer extracts of Inform 6 code

Include (-
Array sop_storage --> PACKED_TEXT_STORAGE "!!>";
Global saved_optional_prompt = sop_storage;
-).
2 Likes