From: Jeong Dal via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jeong Dal <haksan@mac.com>
Subject: [NTG-context] Re: Lua question - table.save, table.load
Date: Sun, 12 Jan 2025 20:00:40 +0900 [thread overview]
Message-ID: <D99ADDE6-4330-4A79-BA35-8662657EF793@mac.com> (raw)
In-Reply-To: <b49619cd-a9ce-487e-aa34-14781b41cf53@xs4all.nl>
Dear Hans,
I found the problem.
I tested the code to give the different file name for each process, but there is no changes.
Hence, it is not the problem of the file “tempList.lua” which contains the list “tfList”.
It is the problem of the “tfList”.
Since I put
local tfList = {}
before the "function document.truthTable(a, func)”,
and save it to tempList.lua.
That is, I appended the truth value to the pervious “tfList”!
There was no initialization of the tfList ={}
By moving “local tfList = {}” to inside the function, the outputs are correct.
Thank you for your concern.
Best regards,
Dalyoung
>> Is there a way to clear the contents in the tempList.lua before I save another table?
>
> so you add to that list?
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2025-01-12 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 15:01 [NTG-context] " Jeong Dal via ntg-context
2025-01-11 16:48 ` [NTG-context] " Hans Hagen
2025-01-11 21:10 ` Jeong Dal via ntg-context
2025-01-12 11:00 ` Jeong Dal via ntg-context [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=D99ADDE6-4330-4A79-BA35-8662657EF793@mac.com \
--to=ntg-context@ntg.nl \
--cc=haksan@mac.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.
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 NNTP newsgroup(s).