JohnOne Posted July 25, 2012 Share Posted July 25, 2012 I think I get the idea of why you might use an inline function. From what I read, if you are calling a function many times throughout your code, it may be beneficial to have that function inline. My question is, will making a function inline, benefit my code if it is only used once but many times in a tight loop? I also read that long complex functions are not good candidates for inline, but I'm unsure if that was opinion or factt. Anyway, the function is neither long nor complicated, but called in something similar to a msg loop. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Valik Posted July 25, 2012 Share Posted July 25, 2012 It can benefit yes. The compiler may already inline the code or may not even if you tell it to. The inline keyword is a hint that the compiler may not need or may ignore entirely. JScript 1 Link to comment Share on other sites More sharing options...
JScript Posted July 25, 2012 Share Posted July 25, 2012 (edited) I liked the idea, it can be much easier than inline assembly! But I think the trend is to have a real AutoIt compiler, where at least the script is converted into C and after that, compiled! I bet all the chips in AutoIt, no doubt! João Carlos. Edited July 25, 2012 by JScript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
trancexx Posted July 25, 2012 Share Posted July 25, 2012 JScript this is not about AutoIt. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
JScript Posted July 25, 2012 Share Posted July 25, 2012 JScript this is not about AutoIt. I'm sorry, at least I expressed my opinion, even that is not valid! João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
trancexx Posted July 25, 2012 Share Posted July 25, 2012 I'm sorry, at least I expressed my opinion, even that is not valid! João Carlos. Don't worry about it. We all say stupid things once in a while. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
JohnOne Posted July 25, 2012 Author Share Posted July 25, 2012 It can benefit yes. The compiler may already inline the code or may not even if you tell it to. The inline keyword is a hint that the compiler may not need or may ignore entirely.Thank you. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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