Page 1 of 1

A way for change the value of a var (runtime)?

Posted: 19. May 2014, 18:20
by Johannesynt
HI. I need to change the value of a variable while the VM is running (runtime).
If a create a variable in the source code (for example bool x=true), and i need to change the value to false while the virtual machine is runnig, how can i do it? for avoid problems, i can use a binary semaphore (or someting else).

Re: A way for change the value of a var (runtime)?

Posted: 19. May 2014, 23:27
by Johannesynt
Can i use XPCOM? if a understand, with XPCOM i can call a function(method), if this function was properly configured for XPCOM in the source code, before compiling. In my case i can write a function that simply change the value of a variables.
Anyi can't fins a simple example of how to use xpcom...

thanks

Re: A way for change the value of a var (runtime)?

Posted: 21. May 2014, 20:35
by noteirak
Your goal is very obscure and it seems you're trying to hack your way around something that shouldn't be, or you're going at it the wrong way.
In any case, the best place to discuss source code itself is at the Dev Mailing List.