Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] 'functions -T' tracing: recurse into anonymous functions.
- X-seq: zsh-workers 38657
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] 'functions -T' tracing: recurse into anonymous functions.
- Date: Fri, 10 Jun 2016 21:06:32 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=GOc0BUBM6oIzai+nKcG+SbCL7/y5btbshmXgre0QEaA=; b=blsfyZLW0xo+uUVU9NULioYBIiLaX8ies0YEMrl6V6NRQFYwo2wERZvbZLAHT1Wobe zHoehSbc4bvkLmETthttWf4ChbQe89WnbDUloIQjExpufiUIVeDmZzPQZThpujs/riS1 fK1nYNv/1iQd3OFy5+Cf9WhP1imtQ3AZT7c7GAKB/LjCw/VF5msZa3ZHY+9wJD4qsIoN fSyYmeuwV+EEFw+P9b+L7WloVlKTMNZGZrh9MaAxzqsZW+wT6ZTIOwEaHn78i5Dw916M bCYha3YuzhJqRWDouei8RpAImZc0utMg3MGj+xsNlIEwXUIWsmUCtKsd8vU8rQZfcSw+ x84A==
- In-reply-to: <1465580222-3300-1-git-send-email-danielsh@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1465580222-3300-1-git-send-email-danielsh@tarsus.local2>
On Jun 10, 5:37pm, Daniel Shahaf wrote:
}
} for this function; the flag tt(-T) does the same, but turns off tracing
} on any function called from the present one, unless that function also
} -has the tt(-t) or tt(-T) flag. The tt(-u) and tt(-U) flags cause the
} +has the tt(-t) or tt(-T) flag or is anonymous. The tt(-u) and tt(-U) flags cause the
That phrasing is a little hard to follow. Perhaps something more like:
... turns off tracing
for any named (not anonymous) function called from the present one, unless
that function also ...
Note I'm also suggesting changing "turns off tracing on" into "turns off
tracing for" to reduce the chances of off/on confusion. (Further, don't
be afraid to reformat paragraphs if lines get long.)
I've been considering something similar for the zsh/param/private module
to make caller private variables visible inside anonymous functions, but
haven't worked out all the necessary stack management.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author