<div dir="ltr"><div>Interesting. Based on the Lua docs, it seems as though iterators like FCLuaIterator were the only way to do loops in the early days of Lua. So it makes sense that there would be one.</div><div><br></div><div>Jari saying that makes me wonder if the jwlua for loop iterators aren't written in lua code rather than c++. (Then added into the jwlua environment before the plugin is invoked.) I've been doing some experimentation with embedding lua, and that's the most straightforward way I've found to provide functions for loop iteration from c++.</div><div><br></div><div>By contrast, FCLuaIterator is definitely C++. It's documented in the PDK Framework.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 6, 2021 at 10:08 AM Simon Leclerc <<a href="mailto:simon@prodsl.ca">simon@prodsl.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Robert,<div><br></div><div>I remember Jari saying that from a memory and speed point of view, the use of the  FCLuaIterator class was much preferable.</div><div><br></div><div>Even though it requires a little bit of a different thinking, I try to use it as much as possible.<br><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px"><div style="overflow-wrap: break-word;"><div><div><span style="font-style:normal"><br><br></span></div><div><span style="font-style:normal"><br></span></div><div><span style="font-style:normal"><br></span></div><div><span style="font-style:normal"><br></span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><span style="font-family:"Times New Roman",serif;font-size:16px">¯\_(</span><span style="font-family:"MS Gothic";font-size:16px">ツ</span><span style="font-family:"Times New Roman",serif;font-size:16px">)_/¯</span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><span style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px"><div style="overflow-wrap: break-word;"><div><br></div><div>Simon Leclerc</div><div>60, Mirabelle</div><div>Ste-Agathe-des-Monts, Québec</div><div>J8C 0W9</div><div><a href="mailto:simon@prodsl.ca" target="_blank">simon@prodsl.ca</a></div></div></span></div></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><br></div></div></span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div>
</div>
<div><br><blockquote type="cite"><div>On October 5, 2021, at 22:08, Robert Patterson <<a href="mailto:robert@robertgpatterson.com" target="_blank">robert@robertgpatterson.com</a>> wrote:</div><br><div><div dir="ltr"><div>Hello All,</div><div><br></div><div>Does anyone use the FCLuaIterator class? It seems to duplicate some of the jw built-in iterator functions, like for each() and for eachentry(). But it also has filters, which gives it some advantages.</div><div><br></div><div>Robert</div><div><br></div></div>
_______________________________________________<br>JWLua mailing list<br><a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br><a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>