emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Visuwesh <visuweshm@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] Add support for tables in Calc src block :var
Date: Fri, 13 Dec 2024 11:48:02 +0000	[thread overview]
Message-ID: <878qsju7m5.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87frmr3kql.fsf@gmail.com> (Visuwesh's message of "Fri, 13 Dec 2024 16:36:42 +0530")

Response below/inline for email Visuwesh wrote:
> (original email sent 13 Dec 2024 at 16:36)
> 
> However, when we have something like
>
>     x := 3
>     a := 2 * x
>     x := 2
>     z := 0.5 * x
>
>     | 1 | |
>     #+TBLFM:$2=$x*$z
>
> what should $2 evaluate to?  $z is straight-forward: $z=1.  But what
> about $x?  Should it be 2 or 3?  If we go by Calc's convention, it
> should be 3.  Do you agree?

I agree: given the location of the table, I would assume that x would be
2 when referenced in the table.

-- 
: Eric S Fraga, with org 9.7.17-3ae179 in Emacs 31.0.50

      reply	other threads:[~2024-12-13 11:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-16  3:45 [PATCH] Add support for tables in Calc src block :var Visuwesh
2024-03-16  9:52 ` Ihor Radchenko
2024-03-16 11:37   ` Visuwesh
2024-03-16 12:19     ` Ihor Radchenko
2024-03-16 12:34       ` Visuwesh
2024-03-18 12:48         ` Fraga, Eric
2024-03-18 15:29           ` Visuwesh
2024-03-18 15:45             ` Fraga, Eric
2024-03-30 13:04           ` Visuwesh
2024-04-03 12:43             ` Fraga, Eric
2024-12-13  7:31               ` Visuwesh
2024-12-13  9:02                 ` Visuwesh
2024-12-13 10:53                   ` Fraga, Eric
2024-12-13 11:06                     ` Visuwesh
2024-12-13 11:48                       ` Fraga, Eric [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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=878qsju7m5.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=visuweshm@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).