[erlang-bugs] system_info(nif_version) does not work

PAILLEAU Eric eric.pailleau@REDACTED
Wed Jan 21 22:59:10 CET 2015


Thinking to this ...

-since erlang:system_info(nif_version) -> "17.4".

-spec erlang:system_info
	(allocated_areas) -> [ tuple() ];

		snip --- snip

   	(nif_version) -> string();

		snip --- snip
	(wordsize | {wordsize, internal} | {wordsize, external}) -> 4 | 8.

This could also be pickup by doc generation, BTW...


Le 21/01/2015 19:49, Eric Pailleau a écrit :
> Hi,
> not really a distraction, but a very common problem. As I already wrote
> in a former mail, documentation do not give the first version where a
> function or a function argument is available. was not really a problem
> in the past when API was stable, but now a concern with functions inflation.
> it might be clever, in addition of -spec , a -since or somewhat.
> This way it would be easier to a tool, dialyzer or other to say what is
> the minimal erlang version needed by the code. A big work, but could be
> done by community, I guess.
> MHO.



More information about the erlang-bugs mailing list