[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing optional arguments for use with internal functions
From: |
Heime |
Subject: |
Re: Passing optional arguments for use with internal functions |
Date: |
Fri, 28 Jul 2023 16:42:07 +0000 |
------- Original Message -------
On Friday, July 28th, 2023 at 10:51 PM, Emanuel Berg <incal@dataswamp.org>
wrote:
> uzibalqa wrote:
>
> > Is this the way to allow optional arguments for 'lexif', or
> > would I have additional tests [...]
>
>
> Optional arguments defaults to nil, if that is an acceptable
> value you can use it as you do, if not you can check if it is
> nil first thing in the function and if it is, set it to
> something that works, e.g.
>
> (or arg (setq arg 0))
Does the condition you specified work whether the binding is lexical or dynamic
?
> --
> underground experts united
> https://dataswamp.org/~incal