Re: Inform v5.5 weirdness


22 Aug 1995 12:15:32 GMT

"Sam Hulick" <shulick@guava.ucs.indiana.edu> wrote:
> Which means that all objects will have NULL as the default. HOwever,
> when I actually go to set oldlife to something:
>
> something.oldlife = something.life;
>
> It crashes with internal error #23. I actualy have to declare
> 'oldlife NULL' within the object. Why? This seems silly..

In order to save space in the compiled code, not every object has memory
allocated for every property. This is because there can be up to 62
properties in an Advanced game, and it's a rare object that uses more
than 10 or so in the course of a game. So if you know that an object is
going to be using a property during the course of a game, give it an
initial value so that the appropriate amount of memory will be
allocated.

--
Gareth Rees