<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Vim</anon>
  </categories>
  <description>タイトルがすでに結論なのですが、この前追加された funcref() を使用することで、以下のような問題を回避することが出来ます。 secret-garden.hatenablog.com function! Foo() let x = 0 function! Bar() closure let x += 1 return x endfunction &quot; return function('Bar') &quot; function() ではなくて funcref() を使用することで &quot; 関数が上書きされた場合の問題を回避する return funcref('Bar') endfunction let …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F08%2F23%2F231533&quot; title=&quot;Vim script の funcref() を用いても関数の closure を使用するべきではない - Secret Garden(Instrumental)&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>2016-08-23 23:15:33</published>
  <title>Vim script の funcref() を用いても関数の closure を使用するべきではない</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2016/08/23/231533</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
