[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lexical binding

From: Stefan Monnier
Subject: Re: Lexical binding
Date: Sat, 02 Apr 2011 14:38:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> ;;; file test.el -*- lexical-binding: t -*-

> (defun test (sum args)
>   (dolist (arg args sum)
>     (setq sum (+ sum arg))))

> => test.el:3:1:Warning: Unused lexical variable `arg'

Check the `dolist' macro, it has a FIXME for that.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]