From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56236 Path: news.gmane.org!not-for-mail From: John Devereux Newsgroups: gmane.comp.tex.context Subject: Re: What do you miss in ConTeXt? Date: Sat, 13 Feb 2010 16:24:11 +0000 Message-ID: <878waxhzo4.fsf@devereux.me.uk> References: <4B6FF4C6.4000401@googlemail.com> <87ljexiase.fsf@devereux.me.uk> <4B769B64.9000405@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1266078292 24466 80.91.229.12 (13 Feb 2010 16:24:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Feb 2010 16:24:52 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 13 17:24:38 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NgKnN-0001Qz-L6 for gctc-ntg-context-518@m.gmane.org; Sat, 13 Feb 2010 17:24:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0800AC9BBC; Sat, 13 Feb 2010 17:24:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RZjITgwSzWdG; Sat, 13 Feb 2010 17:24:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C914C9CC6; Sat, 13 Feb 2010 17:24:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C327C9CC6 for ; Sat, 13 Feb 2010 17:24:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Tv1E-ai1nMg3 for ; Sat, 13 Feb 2010 17:24:13 +0100 (CET) Original-Received: from devereux.me.uk (cordelia.devereux.me.uk [217.169.15.178]) by balder.ntg.nl (Postfix) with ESMTP id E0A43C9BBC for ; Sat, 13 Feb 2010 17:24:12 +0100 (CET) Original-Received: from cordelia.devereux.me.uk ([217.169.15.178] helo=devereux.me.uk ident=jd) by devereux.me.uk with esmtp (Exim 4.71) (envelope-from ) id 1NgKmy-0000fm-9K for ntg-context@ntg.nl; Sat, 13 Feb 2010 16:24:12 +0000 In-Reply-To: <4B769B64.9000405@googlemail.com> (Wolfgang Schuster's message of "Sat, 13 Feb 2010 13:30:28 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:56236 Archived-At: Wolfgang Schuster writes: > Am 13.02.10 13:24, schrieb John Devereux: >> I asked before why ConTeXt does not flag incorrect parameters, I seem to >> recall the answer was that it would slow things down too much. But a >> command line switch to do this would be very useful. > Already available for MkIV (mult-chk.mkiv): > > \starttext > > \testfeatureonce{10000}{\getcheckedparameters[test][xx][a=b,c= d, e = > f]} % 0.20 seconds > > \enablecheckparameters > > \testfeatureonce{10000}{\getcheckedparameters[test][xx][a=b,c= d, e = > f]} % 0.35 seconds > > \getcheckedparameters[test][xx][a=a] > \getcheckedparameters[test][xx][b= b] > \getcheckedparameters[test][xx][c = c] > \getcheckedparameters[test][xx][d = d d , e = e ,f = f ] > \getcheckedparameters[test][xx][g={oeps {oeps}}] > \getcheckedparameters[test][xx][crap=whatever] > > \startlines > [a:\getvalue{xxa}][a] > [b:\getvalue{xxb}][b] > [c:\getvalue{xxc}][c] > [d:\getvalue{xxd}][d d ] > [e:\getvalue{xxe}][e ] > [f:\getvalue{xxf}][f ] > [g:\getvalue{xxg}][\detokenize\expandafter{\xxg}] > \stoplines > > \setvalidparameterkeys[test][crap] > > \getcheckedparameters[test][xx][crap=whatever] > > \stoptext > > Wolfgang Hi Wolfgang. That is a bit beyond me... I am guessing this means that there is now a facility whereby certain commands could be instrumented? In the future? What I was asking for was a general "switch" that could turn on parameter error checking for all commands. (Perhaps the work involved is too much). -- John Devereux ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________