From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19869 invoked by alias); 22 Oct 2015 23:56:33 -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: 20814 Received: (qmail 20471 invoked from network); 22 Oct 2015 23:56:32 -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=ZB+oltxur6m9ywiVeFmLqb+/uzCaBaXIIebaUnyFJKQ=; b=LnReNQuB+rBSZ2P8/lo729YOVIbNwX/ugh7dTDpOnL2C9P846zevEKPswxCdmyVFXB goK5/qxFFSr+9zyL2X1RCal8FuT5qFHPk2gA1fJz9cHfNyOKgP9mdvhm/eF5Dq/LyqWw a9SD5ptumXht3uHEZO5TN3cO/a1ZLavc7QLi9PIbu7F8sv/YuKEk6z1BgZ/hkXCAe4jI 7l/loIBJjXZK5gEsiJRsLL4fESFGcDpki3sN0ifEB8gdJQiPXnEhPWj+LQGf6mboR3k2 WgupaK5uKzvBcbMKH+83lPM7SGp/4fzop7683sXuVhtnpti+nNGYBsMHRYcbYnNwl4FK /0WQ== X-Gm-Message-State: ALoCoQkNInTAEyAi9E4WeMJZ+VcCXDAPWRVh22sSn4TW9k7gX9oTd3KMFyZHy/4vVnbIJUVgv37n X-Received: by 10.202.98.2 with SMTP id w2mr12404083oib.83.1445558188492; Thu, 22 Oct 2015 16:56:28 -0700 (PDT) From: Bart Schaefer Message-Id: <151022165626.ZM6804@torch.brasslantern.com> Date: Thu, 22 Oct 2015 16:56:26 -0700 In-Reply-To: <2128161445528612@web30m.yandex.ru> Comments: In reply to ZyX "Re: suprise with -=" (Oct 22, 6:43pm) References: <562483C9.1060602@eastlink.ca> <151019113517.ZM32739@torch.brasslantern.com> <562545DD.5020008@eastlink.ca> <151019172744.ZM558@torch.brasslantern.com> <5627D2F8.3000004@eastlink.ca> <970471445453032@web1h.yandex.ru> <562900EF.8090509@eastlink.ca> <2128161445528612@web30m.yandex.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" Subject: Re: suprise with -= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 22, 6:43pm, ZyX wrote: } } Though I know no language implementations other then VimL (and, maybe, } tcsh: have not actually seen its source code, but it looks like it is } also executed in-place) that do not have the parsing stage. Yes, (t)csh also executes in place, or close to it. Csh parses one line at a time, executes it, then parses the next line. It's not quite as bad as VimL, but it means that e.g. loops within scripts are implemented by using fseek to rewind the file pointer to the beginning of the loop. You can create some really entertaining self-modifying scripts in csh by having the script rewrite parts of its own source file before they are read (or re-read, if looping). Csh is like Gromit in "The Wrong Trousers", laying down his tracks the instant before the train runs across them. VimL apparently lays down the individual railroad ties.