description
Want to know what version of the STPServer you're running? Want to know what's the latest version? This command will do it. If an argument includes the string ".bcd", it is taken to be the name of a BCD file, which is read, and whose version stamp is reported. Otherwise an argument is taken to be the name of a module in the loadstate, and the version stamp of each module in the loadstate with the given name is reported.
Another puzzler people are sometimes faced with is this: FooImpl is in the loadstate, but the loadstate offers nothing in interface Foo, even though FooImpl exports Foo. This probably means that FooImpl is bound into something that doesn't export Foo --- but what? When the VersionOf command prints information about a module in the loadstate, it also describes the module it's bound into, if any.
examples
% VersionOf FastMouse [Cedar]<CedarChest6.1>FastMouse>FastMouse.bcd
FastMouse:gfh#70714—181703d1e167 in FastMouse—181703d1e167
[Cedar]<CedarChest6.1>FastMouse>FastMouse.bcd!6—181703d1e167
The user wondered if he is running the current version of FastMouse; he found out he is.
% VersionOf ComputeServerImpl
ComputeServerImpl:gfh#75024—46ae3d05d15e in SummonerPackage:ConfigIndex#63—fc079e66e753
This user noted that although ComputeServerStatistics.NextServerEvent is exported by ComputeServerImpl, and ComputeServerImpl is in the loadstate, ComputeServerStatistics.NextServerEvent is unavailable. So this user wondered what turkey config forgot to export ComputeServerStatistics --- and found out that it's SummonerPackage. Note that in fact this is wrong --- ComputeServerImpl is bound into SummonerServer, which is then bound into SummonerPackage. The Abstract Machine sometimes tells lies.
% VersionOf Watch
Watch:gfh#23334—31a8875be1ff in Watch—31a8875be1ff
This poor sucker just wanted to see something work, but stumbled on another of the Abstract Machine's current bogosities --- it sometimes invents phony configs. In truth, the program Watch is not bound into a config named Watch --- it just looks that way.