Bug

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Wed Dec 29 10:39:02 CET 2004


Hi,

This bug is even more interesting, I think.

With the same files as Joe posted, check this out:

Eshell V5.4.3  (abort with ^G)
(emacs@REDACTED)1> c("c:/cygwin/home/vlad/bug", [{outdir, "c:/cygwin/home/vlad/"}]).
{ok,bug}
(emacs@REDACTED)2> bug:module_info().
[{exports,[{a,0},{module_info,0},{module_info,1}]},
 {imports,[]},
 {attributes,[{vsn,[275716032013154121462940958450039619938]}]},
 {compile,[{options,[{outdir,"c:/cygwin/home/vlad/"}]},
           {version,"4.3.2"},
           {time,{2004,12,29,9,36,56}},
           {source,"c:/cygwin/home/vlad/bug.erl"}]}]
(emacs@REDACTED)3> c("c:/cygwin/home/vlad/bug1", [{outdir,
"c:/cygwin/home/vlad/"}]).
{ok,bug1}
(emacs@REDACTED)4> bug:module_info().
[{exports,[{c,0},{a,0},{module_info,0},{module_info,1}]},
 {imports,[]},
 {attributes,[{vsn,[275716032013154121462940958450039619938]}]},
 {compile,[{options,[{outdir,"c:/cygwin/home/vlad/"}]},
           {version,"4.3.2"},
           {time,{2004,12,29,9,36,56}},
           {source,"c:/cygwin/home/vlad/bug.erl"}]}]
(emacs@REDACTED)5>

So it's the simple fact that the bug:c() reference is *compiled* that it makes
it appear in the export list!

regards,
Vlad



More information about the erlang-questions mailing list