Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Can primitive data types be manually deleted?

Author
Message
twofoldsilence
2
Years of Service
User Offline
Joined: 18th Aug 2021
Location:
Posted: 24th Sep 2021 14:00
Fellow AppGameKit Classic Basic (tier 1) Programmers;

Can primitive data types (integer, float, string, arrays[]) be manually deleted in AppGameKit Classic Basic (tier 1) like more advanced objects (Image, Sprite, Text, etc.), as I would like to insure my AppGameKit apps maintain the smallest memory footprint possible while running.

Thanks,
twofoldsilence.
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 24th Sep 2021 15:44
I don't think you can manually delete data types in tier 1, but then you shouldn't need to. AppGameKit is very good at tidying up after itself so it will clear out all variables etc. when the app is ends. If you use local variables in functions then they will be automatically freed when the function ends.

If you are worried about global variables taking up too much space then you could always "zero" them to take up minimum space when you don't need them. For example:
MyInteger = 0
MyFloat# = 0.0
MyString$ = ""
MyArray.length = -1

Login to post a reply

Server time is: 2024-04-24 22:14:15
Your offset time is: 2024-04-24 22:14:15