From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8028 invoked by alias); 30 Sep 2015 07:05:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20666 Received: (qmail 11297 invoked from network); 30 Sep 2015 07:05:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 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:content-type; bh=x91IUBzzvVafgbxGZmjdgsro177K9WO8/agXsV1Z848=; b=PqVNC6/NuZAAUreKzUEZbKAw88hWOTL45Te9CtAed0i+vUFgO1xgmhvNWcq9eGAJOj bB3fexocnj6ud5r2Y+U6MZDwLtZueCAf4mpuLLl5RVmsTQevU9uT2lQ2oq/J+gghDIg1 8hlFMq/IKEWljRrK8ZaoSwERn9vE5rEJLM9Z5dn/YBvH6EkwPho80v9YA8LqOsHfksUw +F3EvolpmtVRTLFzWJHF/FUhhxs288go1RfRIvj0qOnbs/i7YbNrZJdbbU2ZslxJhi+i vCN7hMIF6plBt0Hx7n3zUSKNLHnBTGCOBZ8o4kjtK0zJGzJK5X2vx9dBxW6Xvu+JlcvR QW6g== X-Gm-Message-State: ALoCoQnSAcdnisTNn8kA3KIzgD/G3x1o22EOUcAWbHELSN2dFV+kdmdX7wbZ9ufn1bL+JUhhE0pB X-Received: by 10.182.196.3 with SMTP id ii3mr1257143obc.84.1443596708663; Wed, 30 Sep 2015 00:05:08 -0700 (PDT) From: Bart Schaefer Message-Id: <150930000505.ZM21759@torch.brasslantern.com> Date: Wed, 30 Sep 2015 00:05:05 -0700 In-Reply-To: <560B61C5.2080001@eastlink.ca> Comments: In reply to Ray Andrews "Re: wheels within wheels" (Sep 29, 9:15pm) References: <55FAE223.2080502@eastlink.ca> <150917103419.ZM10067@torch.brasslantern.com> <150918171441.ZM27212@torch.brasslantern.com> <55FD7982.9030505@eastlink.ca> <150919092922.ZM28214@torch.brasslantern.com> <55FDA5D3.9020304@eastlink.ca> <150919142243.ZM23634@torch.brasslantern.com> <55FE04AD.1070304@eastlink.ca> <150919224120.ZM4736@torch.brasslantern.com> <55FF3F7E.4060906@eastlink.ca> <150920211840.ZM31871@torch.brasslantern.com> <5600386E.7060201@eastlink.ca> <150921111746.ZM388@torch.brasslantern.com> <56006401.5060902@eastlink.ca> <150921201943.ZM707@torch.brasslantern.com> <560B1BE7.8020507@eastlink.ca> <150929204047.ZM9646@torch.brasslantern.com> <560B61C5.2080001@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: wheels within wheels MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 29, 9:15pm, Ray Andrews wrote: } } Each command is past when it's past so that must mean that the address } of first foo ... is there ... yes of course there is, the thing is in } memory ... just aborts when second foo comes along. No, the outer foo will happily keep executing until it returns, at which point it is garbage-collected. The old body has merely been disconnected from the name. function foo { echo defining bar function bar { echo hello from bar } echo redefining foo function foo { echo hello from new foo bar } foo echo goodbye from the old foo }