如何从erlang shell中找到“wx”模块版本?

svmlkihl  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(175)

我使用module_info()如下,vsn字段不包含版本信息。如何将190640877967407394157636569138961474448转换为wx版本?
从Erlang 24.3.3开始,wxErlang参考手册wx版本应为2.1.3。

(chair@macbook.local)1> wx:module_info().
[{module,wx},
 {exports,[{parent_class,1},
           {new,0},
           {new,1},
           {destroy,0},
           {get_env,0},
           {set_env,1},
           {subscribe_events,0},
           {null,0},
           {is_null,1},
           {equal,2},
           {getObjectType,1},
           {typeCast,2},
           {batch,1},
           {foreach,2},
           {map,2},
           {foldl,3},
           {foldr,3},
           {create_memory,1},
           {get_memory_bin,1},
           {retain_memory,1},
           {release_memory,1},
           {debug,1},
           {demo,0},
           {module_info,...},
           {...}]},
 {attributes,[{vsn,[190640877967407394157636569138961474448]}]},
 {compile,[{version,"8.0.3"},
           {options,[debug_info,
                     {d,'USE_ESOCK',true},
                     {i,"/buildroot/otp/lib/wx/src/../include"},
                     warn_unused_vars]},
           {source,"/buildroot/otp/lib/wx/src/wx.erl"}]},
 {md5,<<143,108,24,249,12,71,11,187,138,125,241,49,52,90,
        99,144>>}]
i2byvkas

i2byvkas1#

1> application:load(wx).
ok
2> application:loaded_applications().
[{kernel,"ERTS  CXC 138 10","8.3.1"},
 {wx,"Yet another graphics system","2.1.2"},
 {stdlib,"ERTS  CXC 138 10","3.17.1"}]

相关问题