patchGNU Octave - Patches: patch #7888, add "remove" to autoload

 
 

patch #7888: add "remove" to autoload

Submitter:  Juan Pablo Carbajal <juanpi>
Submitted:  Mon 19 Nov 2012 02:51:27 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 May 2013 02:32:20 PM UTC, comment #1: 

Ping...

Could anyone revise this, please?

Thank you.

Juan Pablo Carbajal <juanpi>
Group Member
Mon 19 Nov 2012 02:51:27 PM UTC, original submission:  

Hi,
Realted thread:
http://octave.1599824.n4.nabble.com/reverse-of-autoload-td4644524.html

Please find attached a change set that adds the option "remove" to autoload.

The function is extended to accept a third optional argument "remove"
that causes the function to be cleared and removed from autoload_map

The second argument is not used except for the checks (which are
unnecessary in the case of "remove"). So, I can redo the changes to
accept
autoload("foo","remove")

With the current check "remove" is not confused with a absolute path,
so it should produce no clash. Please, let me know.

Also, if "foo" is not in the autoload_map nothing is printed nor
returned. Shall I give a warning?

I did not know if symbol_table::clear_function removes the function
from memory thence there is a comment witha question mark. If that is
the right way of removing a function from memory please remove the
question mark.


Thanks

JPi

Juan Pablo Carbajal <juanpi>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26932:  changeset_autoload added by juanpi (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by juanpi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-25 jwe StatusNone Done
        Open/ClosedOpen Closed
    2012-11-19 juanpi Attached File- Added changeset_autoload, #26932

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code