octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #56881] Command line functions are visible fro


From: Rik
Subject: [Octave-bug-tracker] [bug #56881] Command line functions are visible from m files
Date: Fri, 13 Sep 2019 14:00:17 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #7, bug #56881 (project octave):

I'm not saying it is good or bad, but the behavior is different from how
variables are treated.  Variables also exist in namespaces and if you want
access to them you need to take explicit measures such as using "global" or
evalin().

A command line function feels to me like a temporary, local object of the
workspace where it was defined, and hence I would assume that visibility is
not exported by default.

I think there are plenty of easy ways around this, including using 'clear -f'
before running scripts if you are very concerned about aliasing of function
names.

Because command-line functions are not part of Matlab, we can do whatever we
want, but we still may surprise some users who port scripts and get strange
errors because of name aliasing.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56881>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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