From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88696 Path: news.gmane.org!not-for-mail From: Michail Vidiassov Newsgroups: gmane.comp.tex.context Subject: Re: lpdf.checkedkey has problem with false values Date: Mon, 15 Sep 2014 19:34:12 +0400 Message-ID: References: <5416FEEC.7080704@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410795281 32348 80.91.229.3 (15 Sep 2014 15:34:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 15:34:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 15 17:34:34 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTYIT-0003Qw-Pv for gctc-ntg-context-518@m.gmane.org; Mon, 15 Sep 2014 17:34:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5CDB61028C for ; Mon, 15 Sep 2014 17:34:33 +0200 (CEST) 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 tmrBWeEZcg3B for ; Mon, 15 Sep 2014 17:34:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 454D810222 for ; Mon, 15 Sep 2014 17:34:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9C3F101E6 for ; Mon, 15 Sep 2014 17:34:21 +0200 (CEST) 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 ynD643Xqh47V for ; Mon, 15 Sep 2014 17:34:17 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 8F27F101E1 for ; Mon, 15 Sep 2014 17:34:17 +0200 (CEST) Original-Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s8FFYEJT006818 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 15 Sep 2014 17:34:16 +0200 Original-Received: by mail-lb0-f178.google.com with SMTP id c11so4722356lbj.23 for ; Mon, 15 Sep 2014 08:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iaas.msu.ru; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=A5AXD3rOBybZhSo2gbT95svPz8ih3UMZs14Sksl2o8Q=; b=MW6q3ck/2m8sGUGi0IowOZ5irZeAJazD9EJ/b3I7U0v68BwSdkA3fO5jfV99Y9kaUU XNrSCrCyWlz2sB36sDKwVmNdyK+6OZVSKEdJfICodQrQ1wrNFZZIN96YVVaeQD5K80FD RxsN/iOBaAIwzu6Io8WHXPL/T2PQHMQZLjZtc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=A5AXD3rOBybZhSo2gbT95svPz8ih3UMZs14Sksl2o8Q=; b=ezElgd7za54XYD4xq8f5NQv5HfgNS5ZdX/xqX6aV7NXB4V5/5E1VF+Ziotnij/Ici3 FdaVBonGvsvLEKChQzBaItVvo3wrBmvmt24vTpiDWKU0s2tfS/ai2/k/h3kJxFpLvUBL u8AHCEUEZbJJFJnCGhucC8bP8EktPyR7nU3EprRPEUwVaFsJdHVuSgWHy6n56JyFQzcl M65Eeu++wvJcW8B6g5gGPAw+3eMHSz1BBlZWsil2YxeXFatU3Ow58GH3XdtYP/CEMe2E oZt6RIMi/Iqs0aVvqWZm0FR0DvmD+GCAKMN3pmv3YLQWGohBcsuHX+JX+rppagMc9AYC B9cg== X-Gm-Message-State: ALoCoQn2RZrmlktxNyZxkI29P1HvYSz+nmWVrKgM+9XGIGFrlOZBMmn0dufN2IiW7CgSg3pnM3RF X-Received: by 10.152.8.9 with SMTP id n9mr29466168laa.2.1410795252639; Mon, 15 Sep 2014 08:34:12 -0700 (PDT) Original-Received: by 10.112.137.38 with HTTP; Mon, 15 Sep 2014 08:34:12 -0700 (PDT) In-Reply-To: <5416FEEC.7080704@gmx.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::232; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03MPryfp8 - 9e3303d0bab3 - 20140915 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88696 Archived-At: Dear Peter, > More a lua design decision. 'nil' is equal to 'false' here I know no CS theory behind lua design, but try this: \starttext \startluacode if nil == false then io.write("nil == false\n") end if nil ~= false then io.write("nil ~= false\n") end \stopluacode TEST \stoptext and get nil ~= false As checkedkey is for reading parameter tables, based on user input, there may be real difference between a property not set (i.e. nil) and one set to be false. What if the default setting is true, for example? Michail ___________________________________________________________________________________ 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 ___________________________________________________________________________________