From de7e01c958ff7c9e6da4034a53567a30a4ae5792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Thu, 2 Aug 2012 11:26:48 +0200 Subject: Remove support for tuple funs Tuple funs were deprecated in R15B (in commit a4029940e309518f5500). --- system/doc/reference_manual/expressions.xml | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'system/doc') diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml index d564b20ca6..357f89f731 100644 --- a/system/doc/reference_manual/expressions.xml +++ b/system/doc/reference_manual/expressions.xml @@ -236,10 +236,6 @@ Fun1 = fun(X) -> X+1 end Fun1(3) => 4 -Fun2 = {lists,append} -Fun2([1,2], [3,4]) -=> [1,2,3,4] - fun lists:append/2([1,2], [3,4]) => [1,2,3,4] @@ -1000,13 +996,6 @@ fun (Arg1,...,ArgN) -> Name(Arg1,...,ArgN) end Module. A fun defined in this way will not be dependent on the code for module in which it is defined.

-

When applied to a number N of arguments, a tuple - {Module,FunctionName} is interpreted as a fun, referring - to the function FunctionName with arity N in the module - Module. The function must be exported. - This usage is deprecated. Use fun Module:Name/Arity - instead. - See Function Calls for an example.

More examples can be found in Programming Examples.

-- cgit v1.2.3