Re: Inform: adding two 'before's together?


09 Sep 1995 12:59:16 GMT

"Sam Hulick" <shulick@apricot.ucs.indiana.edu> wrote:
> [Asks how to add another value to a property.]

You need to ensure that Inform allocates enough space for the property
data, by putting blanks in your definition. For example, the
declaration

Object Blah "blah"
with ...,
before NULL NULL;

allocates enough space for two `before' routines, which you can update
like this:

(Blah.&before)-->0 = #r$BeforeRoutineOne;
(Blah.&before)-->1 = #r$BeforeRoutineTwo;

--
Gareth Rees