[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53565] Implement clearvars function for Matla

From: Rik
Subject: [Octave-bug-tracker] [bug #53565] Implement clearvars function for Matlab compatibility
Date: Wed, 5 Dec 2018 00:20:55 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063

Update of bug #53565 (project octave):

                 Summary: clear -x and clearvars revisit => Implement
clearvars function for Matlab compatibility


Follow-up Comment #4:

I improved the input validation of clear to reject multiple options.  I also
changed the documentation to state that all options must appear before any
name patterns.  The code

a1=1; a2=2; a3=3;
clear a* -x a1

is incorrect.  Once option processing has stopped all remaining items on the
line are treated as patterns.  The code above would try to remove a variable
named "-x".

See cset https://hg.savannah.gnu.org/hgweb/octave/rev/096b38cac97f.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]