[JW Lua] FCLuaIterator class
Robert Patterson
robert at robertgpatterson.com
Wed Oct 6 17:33:10 CEST 2021
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.
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++.
By contrast, FCLuaIterator is definitely C++. It's documented in the PDK
Framework.
On Wed, Oct 6, 2021 at 10:08 AM Simon Leclerc <simon at prodsl.ca> wrote:
> Hi Robert,
>
> I remember Jari saying that from a memory and speed point of view, the use
> of the FCLuaIterator class was much preferable.
>
> Even though it requires a little bit of a different thinking, I try to use
> it as much as possible.
>
>
>
>
>
> ¯\_(ツ)_/¯
>
> Simon Leclerc
> 60, Mirabelle
> Ste-Agathe-des-Monts, Québec
> J8C 0W9
> simon at prodsl.ca
>
>
>
>
> On October 5, 2021, at 22:08, Robert Patterson <
> robert at robertgpatterson.com> wrote:
>
> Hello All,
>
> 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.
>
> Robert
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20211006/6dd6d0c0/attachment.htm>
More information about the JWLua
mailing list