unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Stephan Neuhaus <stephan.neuhaus@zhaw.ch>
Cc: 46750@debbugs.gnu.org
Subject: bug#46750: calc defmath let* behaviour surprising, inconsistent, or wrong
Date: Mon, 1 Mar 2021 21:12:44 +0100	[thread overview]
Message-ID: <C0706DA6-BF2B-41B3-9678-AF24E8CAA811@acm.org> (raw)
In-Reply-To: <43B9DD71-1C8D-43CA-8753-5227BAE91302@acm.org>

> Thank you Stephan, it does indeed look like a bug.

Not one but quite a few. Apart from the incorrect variable scoping in let* that you noticed, the `defmath`-specific forms `for` and `foreach` had the same problem: even the examples in the manual didn't work.

Moreover, `foreach` didn't work at all as specified -- it is supposed to iterate over list elements but only ran over the list tails. As I was writing tests, it turned out that the facility to quote functions as a means to override the substitution of `calcFunc-`-prefixed names didn't work at all.

These have now been fixed on master (08b11a02f49da5ca0e4e58a32fa853df0c5e0214); please tell me if it helped. Given the number of flaws discovered in this part of the code, I wouldn't be surprised if there are more to be found.






  reply	other threads:[~2021-03-01 20:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 12:40 bug#46750: calc defmath let* behaviour surprising, inconsistent, or wrong Stephan Neuhaus
2021-03-01 13:01 ` Mattias Engdegård
2021-03-01 20:12   ` Mattias Engdegård [this message]
     [not found]     ` <253704f6-80c2-e689-ba4b-8c139fe14e23@zhaw.ch>
     [not found]       ` <479B7572-1D85-4D56-B3FF-5DFE6E74BC18@acm.org>
2021-03-05 10:49         ` Stephan Neuhaus
2021-03-05 10:58           ` Mattias Engdegård

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C0706DA6-BF2B-41B3-9678-AF24E8CAA811@acm.org \
    --to=mattiase@acm.org \
    --cc=46750@debbugs.gnu.org \
    --cc=stephan.neuhaus@zhaw.ch \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).