Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
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==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version;
        bh=GOc0BUBM6oIzai+nKcG+SbCL7/y5btbshmXgre0QEaA=;
        b=N4mjtcqQnKiSETOKM3T4djSHkhkYSxdkiPJyXa8PZYmuFNXb5UvmzYmhB6vq9hpNYB
         DDytXT46nz1Ndp6LBpduKnjeTnfflMKcwOlA/oR2FC1K2XAIwjl2XEP/MhllJyMBSGqN
         JV5td+3O78MrGGqcHfzFFz6L1OwTcu2JIBvAMve8LpWc+1kjvCibkG6y6pWvgSDEoRFI
         ECa4q+YhPOd9MUuEpZv9sO0Kt2/ffOLknPP5j5c8Vt73CvFHb1nQi8IsEM56c/VsGmQE
         2ILoy5eTyXXzUJ4LbJmGQx9jASbLBWvsvH2MAv+BUfR00H9I8OQMhMQ1gTwF6djc6+56
         V69Q==
X-Gm-Message-State: ALyK8tL0nZcInpuJFMRLGSaRgr7yh3Vgkz4LBhw3oL9oUviHb7ywdVlZbvehaL5b+K4ekw==
X-Received: by 10.66.161.73 with SMTP id xq9mr6208311pab.6.1465617979264;
        Fri, 10 Jun 2016 21:06:19 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160610210632.ZM10619@torch.brasslantern.com>
Date: Fri, 10 Jun 2016 21:06:32 -0700
In-Reply-To: <1465580222-3300-1-git-send-email-danielsh@tarsus.local2>
Comments: In reply to Daniel Shahaf <d.s@daniel.shahaf.name>
        "[PATCH] 'functions -T' tracing: recurse into anonymous functions." (Jun 10,  5:37pm)
References: <1465580222-3300-1-git-send-email-danielsh@tarsus.local2>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: [PATCH] 'functions -T' tracing: recurse into anonymous functions.
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38657

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.

