From: Heime <heimeborgia@protonmail.com>
To: uzibalqa <uzibalqa@proton.me>
Cc: Drew Adams <drew.adams@oracle.com>,
Yuri Khan <yuri.v.khan@gmail.com>, tpeplt <tpeplt@gmail.com>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: List not getting filled up
Date: Mon, 31 Jul 2023 02:59:17 +0000 [thread overview]
Message-ID: <JOO-PwWvLzlKVoyNY1--KVuB2oumAml7WQ5LSXmjhuKKDxFmmuTniX_rM8CNX7HSl-MJMOwKH9LxkH4fiagSeE4cDpHssDOM9-_iL5ZjWjA=@protonmail.com> (raw)
In-Reply-To: <U9Raosi9gNwDHSDCPIc0zFGMcnjux7OoXLdlC9tvP4GpHcnFCFIdRbkDTnkUQ-sNGS_VFcgr1zvH_vXZrZxx5oOdCfH7CK1L-yPdc_BzjiQ=@proton.me>
------- Original Message -------
On Monday, July 31st, 2023 at 2:03 PM, uzibalqa <uzibalqa@proton.me> wrote:
> ------- Original Message -------
> On Monday, July 31st, 2023 at 1:40 PM, Drew Adams drew.adams@oracle.com wrote:
>
>
>
> > > Upon further introspection I found that it makes a lot of difference
> > > whether I use
> > >
> > > (push (copy-sequence string) result)
> > > or
> > > (push string result)
> > >
> > > Why is that ?
> >
> > Because of just what everyone's been saying:
> >
> > If you add the string to the list then you
> > add the same string each time, because the
> > variable `string' refers to the same Lisp object (same string), as shown by` eq'.
>
>
> This is certainly defeating me.
>
> > If you add a copy of the string the copy
> > reflects the current state of the string.
>
>
> string is being passed as argument to function permute, how does it not reflect
> its current state ?
>
> > As I wrote:
> > (eq foo (copy-sequence foo)) ; -> nil
>
>
> Could I have a real example of how they would be different ?
I have just done
(progn
(let* ( (cseq (copy-sequence strg)) )
(message "Output %s %s" strg cseq)
(push (copy-sequence strg) result)))
And the result is always that strg and cseq constitute the same characters.
At no time are they different. So how is pushing one or the other push
something different ?
prev parent reply other threads:[~2023-07-31 2:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 23:21 List not getting filled up uzibalqa
2023-07-29 11:19 ` Emanuel Berg
2023-07-30 14:28 ` tpeplt
2023-07-30 14:47 ` uzibalqa
2023-07-30 17:42 ` Yuri Khan
2023-07-31 0:06 ` uzibalqa
2023-07-31 8:55 ` Yuri Khan
2023-07-31 0:50 ` [External] : " Drew Adams
2023-07-31 1:08 ` uzibalqa
2023-07-31 1:29 ` Drew Adams
2023-07-31 1:34 ` uzibalqa
2023-07-31 1:40 ` Drew Adams
2023-07-31 2:03 ` uzibalqa
2023-07-31 2:59 ` Heime [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='JOO-PwWvLzlKVoyNY1--KVuB2oumAml7WQ5LSXmjhuKKDxFmmuTniX_rM8CNX7HSl-MJMOwKH9LxkH4fiagSeE4cDpHssDOM9-_iL5ZjWjA=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tpeplt@gmail.com \
--cc=uzibalqa@proton.me \
--cc=yuri.v.khan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.