From: Jeong Dal <haksan@me.com>
To: Alan Braslau <braslau.list@comcast.net>,
"list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: metafun: error when I call the same function twice consecutively.
Date: Sat, 02 Jun 2018 09:30:57 +0900 [thread overview]
Message-ID: <46377492-4876-4F3D-8F8C-18ECCC8C55CA@me.com> (raw)
In-Reply-To: <20180601082457.00f8108a@poo.hsd1.co.comcast.net>
Dear Alan,
Thank you for the clear explanation about z.
I tought that z is a special variable different from other pairs.
Now, I know that it is an equation.
Thank you again.
Best regards,
Dalyoung
> 2018. 6. 1. 오후 11:24, Alan Braslau <braslau.list@comcast.net> 작성:
>
> On Fri, 01 Jun 2018 20:29:41 +0900
> Jeong Dal <haksan@me.com> wrote:
>
>> After inserting a line “save x, y;”, it works.
>
> This is also defined as "clearxy ;"
>
> For those learning MetaPost, simplifying, z is defined as "(x,y)" so
> one can write
> z = (a,b) ;
> This is an EQUATION in MetaPost
> (x,y) = (a,b) ;
> not an assignment (as in most other languages), actually a pair of
> equations:
> x = a ; y = b ;
> When x and y are unknown, this can be "solved". When x and y contain
> values, it leads to "inconsistent equations".
>
> One *cannot* write
> z =: (a,b) ;
> ("=:" is the assignment operator),
> for z is just a macro, not a "pair" object or variable.
>
> This can be *very* confusing when learning MetaPost.
>
> Alan
>
> P.S.
> for i=0 upto n:
> z[i] = (i,0) ;
> endfor
> works as each element of the (pseudo)array z is unknown, at least the
> first time that it is used.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2018-06-02 0:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1527847201.14764.ntg-context@ntg.nl>
2018-06-01 11:29 ` Jeong Dal
2018-06-01 14:24 ` Alan Braslau
2018-06-02 0:30 ` Jeong Dal [this message]
[not found] <mailman.1.1527760801.30763.ntg-context@ntg.nl>
2018-06-01 2:22 ` Jeong Dal
2018-06-01 3:19 ` Henri Menke
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=46377492-4876-4F3D-8F8C-18ECCC8C55CA@me.com \
--to=haksan@me.com \
--cc=braslau.list@comcast.net \
--cc=ntg-context@ntg.nl \
/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).