Erlang/OTP Forums

Author Message

<  Erlang bugs mailing list  ~  Bug with module_info in R10B-3

erlang-list at dominicwil
Posted: Mon Mar 21, 2005 9:27 pm Reply with quote
Guest
Hello,

The following bug appeared sometime after R9C, and is at
least present in R10B-3 under Windows XP: when recompiling a
modified module, its old exports appear to be kept by
module_info.

E.g., after compiling test.erl:

-----------------
-module(test).
-export([foo/0]).

foo() -> ok.
-----------------

test:module_info(exports) returns
[{foo,0},{module_info,0},{module_info,1}]

After modifying and recompiling test.erl thus:

-----------------
-module(test).
-export([bar/0]).

bar() -> ok.
-----------------

test:module_info(exports) now returns
[{foo,0},{bar,0},{module_info,0},{module_info,1}]

Regards,

Dominic, on behalf of the www.xpdojo.org team.


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum