<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 遭遇Erlang版的classloader问题</title>
	<atom:link href="http://erlang-china.org/misc/question_about_ebin_load.html/feed" rel="self" type="application/rss+xml" />
	<link>http://erlang-china.org/misc/question_about_ebin_load.html</link>
	<description>erlang 中文社区</description>
	<pubDate>Mon, 01 Dec 2008 22:02:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: mryufeng</title>
		<link>http://erlang-china.org/misc/question_about_ebin_load.html#comment-956</link>
		<dc:creator>mryufeng</dc:creator>
		<pubDate>Sat, 20 Oct 2007 07:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/question_about_ebin_load.html#comment-956</guid>
		<description>还有code:clash(). 能够检查模块加载是否冲突。

http://mryufeng.javaeye.com</description>
		<content:encoded><![CDATA[<p>还有code:clash(). 能够检查模块加载是否冲突。</p>
<p><a href="http://mryufeng.javaeye.com" rel="nofollow">http://mryufeng.javaeye.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yufeng</title>
		<link>http://erlang-china.org/misc/question_about_ebin_load.html#comment-421</link>
		<dc:creator>yufeng</dc:creator>
		<pubDate>Tue, 28 Aug 2007 10:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/question_about_ebin_load.html#comment-421</guid>
		<description>默认的情况 erlang实在第一次看到模块使用的时候 才去加载模块的哦 
 
System Principles 文档写着：

1.4 Code Loading Strategy

The runtime system can be started in either embedded or interactive mode. Which one is decided by the command line flag -mode.

% erl -mode embedded
    

Default mode is interactive.

    * In embedded mode, all code is loaded during system start-up according to the boot script. (Code can also be loaded later by explicitly ordering the code server to do so).
    * In interactive mode, code is dynamically loaded when first referenced. When a call to a function in a module is made, and the module is not loaded, the code server searches the code path and loads the module into the system.

Initially, the code path consists of the current working directory and all object code directories under ROOT/lib, where ROOT is the installation directory of Erlang/OTP. Directories can be named Name[-Vsn] and the code server, by default, chooses the directory with the highest version number among those which have the same Name. The -Vsn suffix is optional. If an ebin directory exists under the Name[-Vsn] directory, it is this directory which is added to the code path.</description>
		<content:encoded><![CDATA[<p>默认的情况 erlang实在第一次看到模块使用的时候 才去加载模块的哦 </p>
<p>System Principles 文档写着：</p>
<p>1.4 Code Loading Strategy</p>
<p>The runtime system can be started in either embedded or interactive mode. Which one is decided by the command line flag -mode.</p>
<p>% erl -mode embedded</p>
<p>Default mode is interactive.</p>
<p>    * In embedded mode, all code is loaded during system start-up according to the boot script. (Code can also be loaded later by explicitly ordering the code server to do so).<br />
    * In interactive mode, code is dynamically loaded when first referenced. When a call to a function in a module is made, and the module is not loaded, the code server searches the code path and loads the module into the system.</p>
<p>Initially, the code path consists of the current working directory and all object code directories under ROOT/lib, where ROOT is the installation directory of Erlang/OTP. Directories can be named Name[-Vsn] and the code server, by default, chooses the directory with the highest version number among those which have the same Name. The -Vsn suffix is optional. If an ebin directory exists under the Name[-Vsn] directory, it is this directory which is added to the code path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piggybox</title>
		<link>http://erlang-china.org/misc/question_about_ebin_load.html#comment-128</link>
		<dc:creator>piggybox</dc:creator>
		<pubDate>Wed, 11 Jul 2007 18:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/question_about_ebin_load.html#comment-128</guid>
		<description>gotapi的确是一旦拥有别无所求:^)</description>
		<content:encoded><![CDATA[<p>gotapi的确是一旦拥有别无所求:^)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackyz</title>
		<link>http://erlang-china.org/misc/question_about_ebin_load.html#comment-73</link>
		<dc:creator>jackyz</dc:creator>
		<pubDate>Tue, 15 May 2007 14:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/question_about_ebin_load.html#comment-73</guid>
		<description>ok,通过 &lt;a href=http://www.gotapi.com/ target=_blank rel="nofollow"&gt;gotApi.com&lt;/a&gt; 提供的强大 erlang 文档搜索功能，瞬间就找到了问题的解决方案。如下：

&lt;coolcode lang="erlang" linenum="off"&gt;
code:ensure_loaded(Mod)
&lt;/coolcode&gt;

正如我所期望的，这个方法以 Mod 为参数处理加载过程，帮我完成 ebin path 的搜索步骤。

古人云，工欲善其事，必先利其器。诚不我欺（erlang 的文档确实不如 gotApi 好用啊）。</description>
		<content:encoded><![CDATA[<p>ok,通过 <a href=http://www.gotapi.com/ target=_blank rel="nofollow">gotApi.com</a> 提供的强大 erlang 文档搜索功能，瞬间就找到了问题的解决方案。如下：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">code</span><span style="color: Gray;">:</span><span style="color: Blue;">ensure_loaded</span><span style="color: Olive;">(</span><span style="color: Blue;">Mod</span><span style="color: Olive;">)</span></div></div>
<p>正如我所期望的，这个方法以 Mod 为参数处理加载过程，帮我完成 ebin path 的搜索步骤。</p>
<p>古人云，工欲善其事，必先利其器。诚不我欺（erlang 的文档确实不如 gotApi 好用啊）。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
