The Dink Network

Reply to Re: load sprites into negative sequence slots - lots of extra slots.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 14th 2021, 12:35 PM
spike.gif
SlipDink
Peasant He/Him United States bloop rumble
2nd generation. No easy way to be free. 
Robj:
It seems you have (re)discovered a very ancient method of hacking. Early computer systems (mainframes and minis) often had a development environment and operating system sort of all rolled into one big block of code.

And early systems also (at least in some cases) tended to assume that the persons using them would follow the rules and not create any problems.

That meant it was possible to use (for example) the assignment of values to negative array elements, to actually overwrite parts of the operating system! This could be useful (in RARE cases); but usually just caused problems later.

Even today, there are computer languages in use that don't do bounds checking on arrays. But, most operating systems and the processors they are based on help to prevent many kinds of possible opportunities to corrupt any part of the operating system using negative array elements. That being said, while using negative array elements in DinkC probably won't cause your computer to crash, it might cause DinkC to behave oddly later when it goes to use some of that memory that was never officially allocated for the editor sprite array.

So, although this method of loading "sprites into negative sequence slots" is probably one that works (at least at first) without causing any problems, it is not likely to be a good method to use.