Bugs: Browse | Submit New | Admin

[#12265] ri Module#module_function lies about args

Date:
2007-07-13 21:26
Priority:
3
Submitted By:
Ryan Davis (zenspider)
Assigned To:
Eric Hodel (drbrain)
Category:
Documentation, ri, and rdoc
State:
Open
Platform:
 
Summary:
ri Module#module_function lies about args

Detailed description
charles: "Ok, looks like ri is lying then, implying that at least a symbol is always required:

------------------------------------------------- Module#module_function
     module_function(symbol, ...)    => self
------------------------------------------------------------------------

The arity-one version would be safe as a method; the arity-zero version would not."

me: "I just checked:

    set_method_visibility(module, argc, argv, NOEX_PRIVATE);
    for (i=0; i<argc; i++) {

rdoc is indeed lying."

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item