ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: "Jairo A. del Rio" <jairoadelrio6@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Conflict between MetaPost (LMTX) and cmarrows
Date: Tue, 27 Apr 2021 19:06:31 +0200	[thread overview]
Message-ID: <5c404839-c082-c39f-93ff-a391542045eb@xs4all.nl> (raw)
In-Reply-To: <2184434d-6982-5154-05b7-558d6744bd61@xs4all.nl>

Hi,

you can't assume fuzzy scratch variables as used in

   def flex(text t) =           % t is a list of pairs
     hide(n_:=0; for z=t: z_[incr n_]:=z; endfor
     dz_:=z_[n_]-z_1)
     z_1 for k=2 upto n_-1: ...z_[k]{dz_} endfor ...z_[n_] enddef;
   newinternal n_; pair z_[],dz_;

to be official .. in mpxl we use names like

   temp_pair_z

i.e. a temp_ namespace (as well as a mfun_ one) for all these 
potentially clashing short names

you could do

   newinternal n_; pair z_[],dz_;

at the top of your file (because we don't use them) but stil ...

Hans


-----------------------------------------------------------------
                                           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 / 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
___________________________________________________________________________________

      reply	other threads:[~2021-04-27 17:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26  4:59 Jairo A. del Rio
2021-04-26  6:49 ` Hans Hagen
2021-04-26  7:59   ` Jairo A. del Rio
2021-04-26  8:56     ` Hans Hagen
2021-04-27  7:23       ` Jairo A. del Rio
2021-04-27 12:35         ` Hans Hagen
     [not found]           ` <CAKyqqaagVc0srydKXTp_WTZq6fJZ3pV3ftfL8TeiC4R0-yu9_A@mail.gmail.com>
2021-04-27 17:00             ` Hans Hagen
2021-04-27 17:06               ` Hans Hagen [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=5c404839-c082-c39f-93ff-a391542045eb@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=jairoadelrio6@gmail.com \
    --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).