marking functions as obsolete/deprecated

Fredrik Thulin ft@REDACTED
Mon Jan 23 09:43:25 CET 2006


Hi

Is there any way I can mark (exported) functions in a module as obsolete 
or deprecated, and have the compiler issue a warning about it?

OTP seems to use static bits in otp_internal.erl to do this, but that 
options isn't exactly available to me. There is the module attribute 
tag 'deprecated', but it seems to only be used by 'xref' and not the 
compiler/linter.

Thanks in advance

/Fredrik



More information about the erlang-questions mailing list