Message-ID: <3D4554A8.2030605@csi.com>
Date: Mon, 29 Jul 2002 10:43:52 -0400
From: John Colagioia <JColagioia@csi.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [Inform] Declaring local arrays
References: <Pine.A41.4.44.0207290253290.58052-100000@unix6.uvic.ca> <ai37vu$11em1r$1@ID-62041.news.dfncis.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ool-182f30fa.dyn.optonline.net
X-Original-NNTP-Posting-Host: ool-182f30fa.dyn.optonline.net
X-Trace: excalibur.gbmtech.net 1027953379 ool-182f30fa.dyn.optonline.net (29 Jul 2002 10:36:19 -0400)
Organization: ProNet USA Inc.
Lines: 17
X-Authenticated-User: jnc
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:106694

Roger Firth wrote:
> <jwanders@uvic.ca> wrote in message
> news:Pine.A41.4.44.0207290253290.58052-100000@unix6.uvic.ca...
>>Hi All,
>>I have a Inform object routine which needs a basic, 5 value, non-dynamic
>>array.  It doesn't need to be passed in or out, nor kept after the routine
>>runs, so I'd like to simply declare it locally. The DM4 talks about global
>>arrays, which I have gotten to work, but isn't there a way to do the same
>>thing locally?
> Sadly, no; all arrays are global.

Except for those which are object Properties.  If you're not looking
for perfectly pretty code, it might be worth the trouble to make the
Routine and Array part of a common object.

It would be nicer if Inform implicitly used the "self" object, but...

