taith Posted November 16, 2006 Share Posted November 16, 2006 question... when i have internal functions (function within a function) globalized variables dont pass between them or out of the internal function atall ??? why ??? Quote Link to comment Share on other sites More sharing options...
Psycho Posted November 16, 2006 Share Posted November 16, 2006 Personally I see no reason to have functions inside other function, but global variables are accessible from "internal" functions. Globalized variables do pass to internal functions. So, there must be a problem in the code. Quote Link to comment Share on other sites More sharing options...
taith Posted November 17, 2006 Author Share Posted November 17, 2006 yes... sorry... that was my stupidity...besides... functions inside functions is a GREAT idea! Quote Link to comment Share on other sites More sharing options...
Psycho Posted November 17, 2006 Share Posted November 17, 2006 [quote author=taith link=topic=115199.msg469541#msg469541 date=1163771903]besides... functions inside functions is a GREAT idea![/quote]Care to elaborate? In my experience, if I need a function to do different things depending where it is called from I just pass it different criteria and have it work accordingly. Plus, I would think that creating functions dynamically would be debugging nightmare. Quote Link to comment Share on other sites More sharing options...
taith Posted November 17, 2006 Author Share Posted November 17, 2006 simple... when i get one function right, and imbed it into another function, i can run it dozens of times, with one line of code... if you prefer, pm me your email address... i'll send you a few examples :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.