<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zrbabbler</author_name>
  <author_url>https://blog.hatena.ne.jp/zrbabbler/</author_url>
  <blog_title>マクロツイーター</blog_title>
  <blog_url>https://zrbabbler.hatenablog.com/</blog_url>
  <categories>
    <anon>TeX</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>（前回の続き） ではどう修正すればよいだろうか。「参照渡し」になるのが悪いということで、「値渡し」にする、つまり変数（レジスタ）ではなく「その値を表すトークン列」を再帰呼出の引数に入れるという方法が考えられる。この場合、「値」は整数値だから、数字列で表したものを渡せばよいであろう。つまり、\countX、\countY 等は \doGcd の内部のみで（数値演算のため）使われる一時変数と考えるのである。ただ一般的な話として、再帰呼出を伴う場合（より一般的には、「同じ一時変数を使用するマクロの呼出がネストした場合」）は、「一時変数」がローカルでないことの影響を考えなければならない。しかし、実は「…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzrbabbler.hatenablog.com%2Fentry%2F20110830%2F1314716522&quot; title=&quot;TeX での末尾再帰(4) - マクロツイーター&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-30 00:02:02</published>
  <title>TeX での末尾再帰(4)</title>
  <type>rich</type>
  <url>https://zrbabbler.hatenablog.com/entry/20110830/1314716522</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
