On Fri, 14 Sep 2007 14:49:00 +0100
"James Urquhart" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> When examining the difference between V5 and V6 games, i noticed that
> the AARY block mysteriously appears in the specification. However
> scummc currently doesn't make use of it, which made me think "Why are
> array's specified there in the first place?".
>
> Looking at the ScummVM code, it seems every array listed there is
> created, provided they are either bit or integer arrays. Essentially
> it's the equivalent of calling the dimArray opcode, except of course
> its done before any script is executed. Which pretty matches the idea
> expressed in the scummc docs that they are "pre-allocated" arrays.
Yes, however the mixing with the types is specific to scummvm. The
original interpreter use the proper size. I must check but I suppose
all array types can be used.
> However i still don't get why ths AARY block exists - surely it is
> easier just to stick to allocating array's in script? The only thing i
> can think of is perhaps it's something to do with memory management?
>
> Of course, i could be completely off track in my thinking here.
>
> Any ideas?
Not really. It seems a bit useless to me too. Support for it could be
added, but that's not really important.
Albeu
_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general