Retrieving vsn attribute from loaded modules

Peter H|gfeldt peter@REDACTED
Wed Apr 4 20:25:52 CEST 2001


Try

	Module:module_info(attributes).

which returns a list of key-value pairs of attributes, in particular
the vsn attribute. Here Module is the name of the module in question.

/Peter

-------------------------------------------------------------------------

Peter Högfeldt			e-mail  : peter@REDACTED
Open Telecom Platform		Phone:  : +46 (8) 727 57 58
Ericsson Utvecklings AB		Mobile	: +46  070-519 57 51
S-126 25 STOCKHOLM		Fax:	: +46 (8) 727 5775
Office address:			Armborstvägen 1, Älvsjö


On Wed, 4 Apr 2001, Sean Hinde wrote:

> Hi,
> 
> I've never figured out how to retrieve the vsn attribute from a loaded
> module.
> 
> beam_lib gives this for beam files but I've struck a blank for already
> loaded code.
> 
> Any ideas anyone?
> 
> Thanks,
> 
> Sean
> 
> 
> 
> NOTICE AND DISCLAIMER:
> This email (including attachments) is confidential.  If you have received
> this email in error please notify the sender immediately and delete this
> email from your system without copying or disseminating it or placing any
> reliance upon its contents.  We cannot accept liability for any breaches of
> confidence arising through use of email.  Any opinions expressed in this
> email (including attachments) are those of the author and do not necessarily
> reflect our opinions.  We will not accept responsibility for any commitments
> made by our employees outside the scope of our business.  We do not warrant
> the accuracy or completeness of such information.
> 
> 




More information about the erlang-questions mailing list