Date : Mon, 01 Nov 2004 19:18:48 +0000 (GMT)
From : Andrew W <a.weston2@...>
Subject: Re: Dimensioned area space
In <URL:news:local.misc> on Sun 31 Oct, Ben Newsam wrote:
> >> > The variable GH% has to be created, whereas the variable G% is already
> >> > allocated space.
> >>
> >> To elaborate further, A%-Z% and @% are referred to as the "System
> >> Integers". BASIC allocates these in a separate memory space (&400-&700 I
> >> think?) so DIMing them doesn't take up memory to store that they exist.
> >>
> >> GH% however is simply an integer (exactly the same as if you did gh%)
> >> and so BASIC has to allocate memory for its name and value.
> >So if it takes up 3 bytes for the name and two bytes for the location
> >address I where are the remaining 4 bytes going?
>
> Did you mean to send that to the list? I think in fact is has been
> answered well enough in there already anyway! <s>
Yes because I was wondering why 4 bytes were given to a variable which
doesn't need any value apart from it's location, certainly not as far
as I can see.
regards,
A.Weston
--
Staffordshire, UK of GB&NI.
reply to: a . wes ton 2@ u k onlin e . c o. u k [ommitting spaces]