emacs-devel
[Top][All Lists]
Advanced

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

Re: `thunk-let'?


From: Gemini Lasswell
Subject: Re: `thunk-let'?
Date: Wed, 22 Nov 2017 09:44:01 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

Michael Heerdegen <address@hidden> writes:

> +  (should-error (byte-compile (thunk-let ((x 1 1)) x)))
> +  (should-error (byte-compile (thunk-let (27) x)))
> +  (should-error (byte-compile (thunk-let x x))))

Since the thunk-let forms aren't quoted, should-error is catching the
evaluation error of the thunk-let form before byte-compile is called.
And to my knowledge byte-compile doesn't signal errors, just issues
warnings.

It's also better to have the erroneous forms be quoted so that they
don't cause errors when using Edebug or Testcover on thunk-tests.el.



reply via email to

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