From 9ac7e19e35b02c02e15abd3abc4e7b5c8b62752d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Fri, 11 Nov 2011 16:57:10 +0100 Subject: filename documentation: Recommend against using filename:find_src/1,2 --- lib/stdlib/doc/src/filename.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/stdlib') diff --git a/lib/stdlib/doc/src/filename.xml b/lib/stdlib/doc/src/filename.xml index bc3a616d39..9296319b83 100644 --- a/lib/stdlib/doc/src/filename.xml +++ b/lib/stdlib/doc/src/filename.xml @@ -295,6 +295,12 @@

Finds the source filename and compiler options for a module. The result can be fed to compile:file/2 in order to compile the file again.

+ +

We don't recommend using this function. If possible, + use beam_lib(3) to extract + the abstract code format from the BEAM file and compile that + instead.

+

The Beam argument, which can be a string or an atom, specifies either the module name or the path to the source code, with or without the ".erl" extension. In either -- cgit v1.2.3