<?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>以前に、TeX で「関数」をどう表現するか（特に「戻り値」をどう扱うか）について解説したことがある。その時に、「関数」として機能するマクロの書き方として次の 3 つを紹介した。 戻り値を受け取る変数をマクロの引数として渡す。 予め「戻り値を受け取る為の専用の変数」を用意する。 戻り値（を表現するトークン列）に完全展開されるマクロを作る。 実は、「関数」の実現方法にはもう 1 つあって、それが「CPS（継続渡しスタイル；Continuation Passing Style）を用いる」ことである。少しばかり変態的なので滅多に用いることはないが、しかしこの形式での実装が必要になる場合がある。それにつ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzrbabbler.hatenablog.com%2Fentry%2F20130526%2F1369591778&quot; title=&quot;TeX で CPS したいとき(1) - マクロツイーター&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>2013-05-26 03:09:38</published>
  <title>TeX で CPS したいとき(1)</title>
  <type>rich</type>
  <url>https://zrbabbler.hatenablog.com/entry/20130526/1369591778</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
