Guest Posted January 22, 2015 Report Share Posted January 22, 2015 Hey guys, Bowbii here.. I've got a little questions, pretty easily answered I assume. My_fnc = { ...code... }; then, I want My_fnc to be something else. So I wrote this: MyFNCChange = { My_fnc = { ..new code..}; }; And I'm calling it via spawn/call MyFNCChange.. Problem is, My_fnc gets redifned even if I didn't call MyFNCChange.. Has anyone a solution for this? It would be great! - xBowBii Link to comment Share on other sites More sharing options...
0 0verHeaT Posted January 22, 2015 Report Share Posted January 22, 2015 Did you preprocessed your MyFNCChange ? Link to comment Share on other sites More sharing options...
0 Guest Posted January 23, 2015 Report Share Posted January 23, 2015 Did you preprocessed your MyFNCChange ? Oh, I don't think so.. How would I preprocessit? Thanks :) Link to comment Share on other sites More sharing options...
0 RimBlock Posted January 23, 2015 Report Share Posted January 23, 2015 I am guessing 0verHeaT is suggesting that preprocessing MyFNCChange may be calling the code that changes the My_fnc value. If you are not doing it then it wont be the problem. Have you tried an alternative. OldFuncCode = {...code...}; NewFuncCode = {...code...}; MyFNCInit = {MyFunc = OldFuncCode;}; MyFNCChange = {MyFunc = NewFuncCode;}; nil = [] call MyFNCInit; //Set initial MyFunc code block to OldFuncCode. nil = [] call MyFNCChange; //Change MyFunc code block to NewFuncCode. Sitting in the office so may have bugs and can't test but an alternative suggestion you could try. Link to comment Share on other sites More sharing options...
0 Guest Posted January 23, 2015 Report Share Posted January 23, 2015 Thanks guys - it appears to be working! Link to comment Share on other sites More sharing options...
Question
Guest
Hey guys, Bowbii here..
I've got a little questions, pretty easily answered I assume.
then, I want My_fnc to be something else.
So I wrote this:
And I'm calling it via spawn/call MyFNCChange..
Problem is, My_fnc gets redifned even if I didn't call MyFNCChange..
Has anyone a solution for this?
It would be great!
- xBowBii
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now