[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optional Arguments
From: |
pietru |
Subject: |
Re: Optional Arguments |
Date: |
Mon, 7 Dec 2020 19:49:46 +0100 |
> Sent: Monday, December 07, 2020 at 7:33 PM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: pietru@caramail.com
> Cc: tomas@tuxteam.de, "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Optional Arguments
>
> pietru@caramail.com writes:
>
> >> Sent: Monday, December 07, 2020 at 4:51 PM
> >> From: tomas@tuxteam.de
> >> To: pietru@caramail.com
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: Optional Arguments
> >>
> >> On Mon, Dec 07, 2020 at 04:06:13PM +0100, pietru@caramail.com wrote:
> >>
> >> [...]
> >>
> >> > How can one get computed values from a function then?
> >>
> >> Either you return it (in your case, e.g. by returning a pair)
> >>
> >> (cons ma mb)
> >
> > Because by default, a function returns the value of the last expression
> > evaluated as the return value. Correct?
> Yes.
>
> You probably wish to prefer to return values instead of using globals as
> Thomas already pointed out.
Quite right. Still, this is all new for me from the code side of things.
- Re: Optional Arguments, (continued)
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Michael Heerdegen, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Arthur Miller, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Alexis Roda, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, tomas, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Arthur Miller, 2020/12/07
- Re: Optional Arguments,
pietru <=
- Re: Optional Arguments, Stefan Monnier, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Christopher Dimech, 2020/12/07