bernardo [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=86368 code via &quot;#include&quot; is not counted against token limit <p>I just noticed that some code I have included in my pico project via an #include statement, ist not counted against the token or char limit. This limits the usefulness of this feature which I wanted to use for a library of reusable code. Has this been discussed before? Are there common workarounds for this? What happens if my compiled code in the end exceeds the limit, while the editor shows my code still within the limits? I assume it will not run, right?</p> https://www.lexaloffle.com/bbs/?tid=55414 https://www.lexaloffle.com/bbs/?tid=55414 Thu, 21 Dec 2023 14:19:53 UTC global and local scope. <p>I wonder what is the scope of a variable if I define it outside of a function as &quot;local&quot; in Pico. So is it local to some kind of root scope within Pico? Is it local to the tab? Seems to me that it&quot;s still possible to use this &quot;local&quot; variable everywhere then, right, since ever other scope is a child to this root scope? </p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>local x=5 -- what means local here? y=6 -- global scope</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=55368 https://www.lexaloffle.com/bbs/?tid=55368 Mon, 18 Dec 2023 14:37:13 UTC