From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14314 invoked by alias); 17 Sep 2017 16:51:37 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 13446 invoked by uid 89); 17 Sep 2017 16:51:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-wm0-f44.google.com Received: from mail-wm0-f44.google.com (HELO mail-wm0-f44.google.com) (74.125.82.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 17 Sep 2017 16:51:35 +0000 Received: by mail-wm0-f44.google.com with SMTP id v142so17167538wmv.5 for ; Sun, 17 Sep 2017 09:51:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4OIgJKdxBs/4xw5S4U+9FaSQxo6vUbzKjVPL2k9neSg=; b=ZdjJnhzYKYgU7XJRMcxXfmCJhMKJjB3Zd3JJnOSJhedJnhXmSoSYIYRGJcR+ddyKjF iOt+uur6VBN/9aZQBtzaoou/Mq5j/ODKBWz0isOGwYk9baSdOwhUkTFNQj43Y1gHg5tr 8qsNUROSSknIbcqC+7UYI6Brdg9Kam3HPfrs39CT1ksjrlNa76L2fLxdDeHyCOs8RNgo tppud7A45W0BNnuUowk2TgveWRVEo1JBfTyOpVVw/oYnyyO9PK8ahz8B6558iRx2UiYC bDNfO90RYFhQkPt8DcNPPWO9R2RQXNdifCZiyZjFSVCdZjiv+GeuS0GBWcPqQt8QA8Kk iRlQ== X-Gm-Message-State: AHPjjUj53A8rwcLkqR6KNayiz2tDY2gXEugGtfSkll5ds1V9NaQQHe4j 7CYcnnGELMSbLXPxi3C/lNz/dClYLt421B8M0mMF52Da X-Google-Smtp-Source: AOwi7QBQMUND6K94sxaAnPTA2/pN3rYP5lyVLp20HExuQJdefq0rzxBn7dk8Ecftx2QevfTsTAJp7rOxGf51QbCzobM= X-Received: by 10.28.199.13 with SMTP id x13mr3535599wmf.124.1505667092652; Sun, 17 Sep 2017 09:51:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.200.2 with HTTP; Sun, 17 Sep 2017 09:51:32 -0700 (PDT) From: Sonny To Date: Sun, 17 Sep 2017 16:51:00 -0000 Message-ID: Subject: scoping rules To: Kawa mailing list Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-q3/txt/msg00052.txt.bz2 sorry for the newb question but i find this behavior odd (let ((handler (android.os.Handler (android.os.Looper:getMainLooper))) (c context)) (handler:post (lambda () (let ((t (android.widget.Toast:makeText (as android.app.Application c) "foobar" 1000))) (t:show)) ))) To get this example to work I had to bind c context in the top level let in the second let, I have to use c instead of context directly. (android.widget.Toast:makeText (as android.app.Application context) will complain /dev/stdin:45:93: unbound location: context it could not see the context binding. Should it not look in the environment? context is definitely in the environment because the c binding works