On Wed, Jul 19, 2017 at 1:45 PM, vitalije <[email protected]> wrote:

One possible use of these generators is for calculating line number in
> external files.
>
​...​

> If v.lines is ready then it is just matter of indexing in tuple. If every
> leaf node has the answer to a question: "how many lines in output do you
> generate?", and if this answer is also readily available without to much
> calculation, then its ancestors with at-others directive should just ask
> and add up all of their at-others children.
>

I don't see how you can easily calculate "how many lines of output do you
generate" for any vnode.  @others and sections references can appear in any
node, and if they do, they alter the number of lines generated by that node
in a way that has nothing to do with len(v.lines).

As I see it, this is an inherently recursive process. A clever solution may
be possible, but imo you have not (yet) described it.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to