private variables
#3

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
I doubt it can be - new and delete dynamically allocate memory, right? So there can be only one such at a time - probably instead of new - using C++ style keywords (int, float) can probably help.
Correct me if I am wrong!
I don't think you understand very well what I'm trying to acheive. I think because you saw the peice of Java code you think I'm trying to create some kind of OO-styled script. I'm just trying to make a variable accessible only inside the script where it's declared -- where other scripts need to use the getter to access this variable. Should be perfectly possible although I have no idea how.
Reply


Messages In This Thread
private variables - by Sinner - 17.05.2013, 09:05
Re: private variables - by RajatPawar - 17.05.2013, 09:10
Re: private variables - by Sinner - 17.05.2013, 09:15
Re: private variables - by Vince - 17.05.2013, 10:47
Re: private variables - by Djole1337 - 17.05.2013, 10:55
Re: private variables - by Slice - 17.05.2013, 12:03
Re: private variables - by Sinner - 17.05.2013, 15:14
Re: private variables - by Slice - 17.05.2013, 15:29
Re: private variables - by Emmet_ - 17.05.2013, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)