Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Removing Global variables  (Read 2591 times)

0 Members and 1 Guest are viewing this topic.

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Removing Global variables
« on: September 13, 2010, 10:52:23 AM »

With my usual rubbishy coding I have ended up with a load of gloabl variables, I understand that they can be set to null, but what if I want to remove them completely.  I have tried Game.DeleteEntity and this does not work - any ideas ?
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Removing Global variables
« Reply #1 on: September 13, 2010, 12:02:35 PM »

you can't do that and I see no reason why would you even want doing that.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Removing Global variables
« Reply #2 on: September 13, 2010, 02:29:29 PM »

2 reasons, firstly the number of globals is cluttering up the code in the debugging window and secondly a large number of globals being carried in memory might have an adverse effect on performanace and loading/saving times
Logged
 

Page created in 0.037 seconds with 24 queries.