From cd3499dea57e83b599b55d6afea170195d433471 Mon Sep 17 00:00:00 2001 From: Stevie Strickland Date: Tue, 9 Mar 2010 23:22:35 +0000 Subject: [PATCH] Initial cut at documentation. svn: r18495 --- collects/scribblings/reference/procedures.scrbl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/collects/scribblings/reference/procedures.scrbl b/collects/scribblings/reference/procedures.scrbl index 558f203ea7..a2d4b5cf5f 100644 --- a/collects/scribblings/reference/procedures.scrbl +++ b/collects/scribblings/reference/procedures.scrbl @@ -65,6 +65,14 @@ produced by @scheme[define-struct], typically, however, @scheme[name] is not used for reporting errors, since the procedure name is typically hard-wired into an internal check.} + +@defproc[(procedure->method [proc procedure?]) + procedure?]{ + +Returns a procedure that is like @scheme[proc] except that, when applied +to the wrong number of arguments, the resulting error hides the first +argument as if the procedure had been compiled with the +@indexed-scheme['method-arity-error] syntax property.} @; ---------------------------------------- @section{Keywords and Arity}