jmon Well-Known Member Licensed User Longtime User Oct 28, 2016 #1 Hello, When reading the code of CloudKVS I was intrigued by line 30 of the ClientKVS Class for b4J: B4X: '... HandleQueue If False Then CallSub(Me, "HandleQueue") 'to avoid obfuscation issues '.... What is the purpose of this "If False Then.." ? Does it mean that we don't need to put an underscore in the sub name if using this technique? Thanks for your help.
Hello, When reading the code of CloudKVS I was intrigued by line 30 of the ClientKVS Class for b4J: B4X: '... HandleQueue If False Then CallSub(Me, "HandleQueue") 'to avoid obfuscation issues '.... What is the purpose of this "If False Then.." ? Does it mean that we don't need to put an underscore in the sub name if using this technique? Thanks for your help.
JakeBullet70 Well-Known Member Licensed User Longtime User Oct 29, 2016 #2 Wow. Good question. Upvote 0
moster67 Expert Licensed User Longtime User Oct 29, 2016 #3 See this: https://www.b4x.com/android/forum/t...-with-explicit-delay.60877/page-2#post-422525 Upvote 0
jmon Well-Known Member Licensed User Longtime User Oct 30, 2016 #4 Thanks, I searched the forum, but couldn't find the answer. Good to know some of those pro-tips Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2016 #5 jmon said: Does it mean that we don't need to put an underscore in the sub name if using this technique? Click to expand... Yes. When the compiler sees a CallSub or CallSubDelayed call with a literal string then it avoids obfuscating the sub name. Upvote 0
jmon said: Does it mean that we don't need to put an underscore in the sub name if using this technique? Click to expand... Yes. When the compiler sees a CallSub or CallSubDelayed call with a literal string then it avoids obfuscating the sub name.
jmon Well-Known Member Licensed User Longtime User Oct 30, 2016 #6 Thanks a lot for the detailed explanation Erel, That's the kind of thing only you can know ! Upvote 0