Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » Un-Dimming an Array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Un-Dimming an Array [message #199551] Wed, 15 April 2009 15:08 Go to next message
JB is currently offline  JB
Messages: 42
Registered: January 2013
Karma: 0
Member
Is it possible? Well in some form it is possible. Image BBS somehow
does this. For those who do not know, Image is made up of a main
module and it loads in smaller modules for different commands, games,
etc. In each of those modules its possible to DIM an array and it can
be re-dimmed (i guess for lack of a better word) every time that
module is ran.

Any ideas how this is accomplished?

Its one of those things that just really bugs me that I cant figure
out. haha
Re: Un-Dimming an Array [message #199552 is a reply to message #199551] Wed, 15 April 2009 15:22 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: lyricalnanoha

On Wed, 15 Apr 2009, JB wrote:

> Is it possible? Well in some form it is possible. Image BBS somehow
> does this. For those who do not know, Image is made up of a main
> module and it loads in smaller modules for different commands, games,
> etc. In each of those modules its possible to DIM an array and it can
> be re-dimmed (i guess for lack of a better word) every time that
> module is ran.
>
> Any ideas how this is accomplished?
>
> Its one of those things that just really bugs me that I cant figure
> out. haha

Might've gone into variable space and deleted the entry for the array?
I think I've heard of people doing it on Applesoft BASIC which shares a
large part of its code with the C64's BASIC.

-uso.
Re: Un-Dimming an Array [message #199559 is a reply to message #199551] Wed, 15 April 2009 22:12 Go to previous messageGo to next message
Alan Jones is currently offline  Alan Jones
Messages: 70
Registered: January 2012
Karma: 0
Member
On Wed, 15 Apr 2009 12:08:47 -0700 (PDT), JB <jbrown1289@gmail.com>
wrote:

> Is it possible? Well in some form it is possible. Image BBS somehow
> does this. For those who do not know, Image is made up of a main
> module and it loads in smaller modules for different commands, games,
> etc. In each of those modules its possible to DIM an array and it can
> be re-dimmed (i guess for lack of a better word) every time that
> module is ran.
>
> Any ideas how this is accomplished?
>
> Its one of those things that just really bugs me that I cant figure
> out. haha

If i understand your question, COMAL can do that, and C64 Basic does
not. I do not know whatImage BBS does.

Alan
Re: Un-Dimming an Array [message #199569 is a reply to message #199559] Fri, 17 April 2009 19:02 Go to previous messageGo to next message
Groepaz is currently offline  Groepaz
Messages: 640
Registered: December 2011
Karma: 0
Senior Member
Alan Jones wrote:

> On Wed, 15 Apr 2009 12:08:47 -0700 (PDT), JB <jbrown1289@gmail.com>
> wrote:
>
>> Is it possible? Well in some form it is possible. Image BBS somehow
>> does this. For those who do not know, Image is made up of a main
>> module and it loads in smaller modules for different commands, games,
>> etc. In each of those modules its possible to DIM an array and it can
>> be re-dimmed (i guess for lack of a better word) every time that
>> module is ran.
>>
>> Any ideas how this is accomplished?
>>
>> Its one of those things that just really bugs me that I cant figure
>> out. haha
>
> If i understand your question, COMAL can do that, and C64 Basic does
> not. I do not know whatImage BBS does.

CLR is the way to do it. (delete all variables, then DIM then again) or use
some ml trickery :)

--

http://www.hitmen-console.org http://magicdisk.untergrund.net
http://www.pokefinder.org http://ftp.pokefinder.org

It is essential to understand that everybody sucked in the beginning.
<Kristofer Dahl>
Re: Un-Dimming an Array [message #199571 is a reply to message #199569] Fri, 17 April 2009 21:04 Go to previous message
JB is currently offline  JB
Messages: 42
Registered: January 2013
Karma: 0
Member
On Apr 17, 7:02 pm, Groepaz <groe...@gmx.net> wrote:
> Alan Jones wrote:
>> On Wed, 15 Apr 2009 12:08:47 -0700 (PDT), JB <jbrown1...@gmail.com>
>> wrote:
>
>>> Is it possible?  Well in some form it is possible.  Image BBS somehow
>>> does this.  For those who do not know, Image is made up of a main
>>> module and it loads in smaller modules for different commands, games,
>>> etc.  In each of those modules its possible to DIM an array and it can
>>> be re-dimmed (i guess for lack of a better word) every time that
>>> module is ran.
>
>>> Any ideas how this is accomplished?
>
>>> Its one of those things that just really bugs me that I cant figure
>>> out.  haha
>
>> If i understand your question, COMAL can do that, and C64 Basic does
>> not.  I do not know whatImage BBS does.
>
> CLR is the way to do it. (delete all variables, then DIM then again) or use
> some ml trickery :)
>
> --
>
> http://www.hitmen-console.org   http://magicdisk.untergrund.nethttp://www.pokefinder.org       http://ftp.pokefinder.org
>
> It is essential to understand that everybody sucked in the beginning.
> <Kristofer Dahl>- Hide quoted text -
>
> - Show quoted text -

Thats the thing, I dont want to delete all the variables. Plus
executing a CLR also clears out gosub pointers so if you are in a sub
routine you will get a return without gosub error.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FREE ROOT ACCESS ON SOLARIS 10 SPARC
Next Topic: Circle-drawing?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Apr 23 21:18:19 EDT 2024

Total time taken to generate the page: 0.04420 seconds