From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14725 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: numexpr in etex / bug ? Date: Sat, 14 Feb 2004 12:59:37 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <745817953.20040214125937@iol.it> References: <6.0.1.1.2.20040212212012.01f5eb20@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076762669 13655 80.91.224.253 (14 Feb 2004 12:44:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2004 12:44:29 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sat Feb 14 13:44:21 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Arz9h-0007Dq-00 for ; Sat, 14 Feb 2004 13:44:21 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E185410B38; Sat, 14 Feb 2004 13:42:36 +0100 (MET) Original-Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by ref.ntg.nl (Postfix) with ESMTP id C813810B0D for ; Sat, 14 Feb 2004 13:41:08 +0100 (MET) Original-Received: from ppp-20-150.29-151.libero.it (151.29.150.20) by smtp1.libero.it (7.0.020-DD01) id 401D5FAE006D8D40 for ntg-context@ntg.nl; Sat, 14 Feb 2004 13:43:15 +0100 X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <6.0.1.1.2.20040212212012.01f5eb20@server-1> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14725 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14725 Thursday, February 12, 2004 Hans Hagen wrote: > Hi, > A numexpr either ends with a \relax or is delimited by () > So, the following works as expected: > \number\numexpr(1) test > but ... the following gives an error message: > \number\numexpr(1) /test > so, the expr parser looks beyond the ) which is rather strange; bug or > feature? It's WAD (Working As Desgined). I.e., it's a feature. The manual clearly states that an expression is "initiated by one of the commands \numexpr, \dimexpr, \glueexpr, or \muexpr and optionally terminated by one \relax (that will be absorbed by the scanning mechanism)". () are only used to limit *sub*expression. Observe that this is congruent with the TeX way of scanning for assignments. So always put a \relax after an expression :) > (those expr are behaving a bit strange anyway) What other problems are you having? Keep in mind the limited precision TeX works with. -- Giuseppe "Oblomov" Bilotta