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

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

[Octave-bug-tracker] [bug #51688] support for "import" keyword


From: Rik
Subject: [Octave-bug-tracker] [bug #51688] support for "import" keyword
Date: Tue, 8 Aug 2017 12:00:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

URL:
  <http://savannah.gnu.org/bugs/?51688>

                 Summary: support for "import" keyword
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 08 Aug 2017 09:00:15 AM PDT
                Category: Interpreter
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

To continue Matlab compatibility, Octave needs support for the import keyword
which allows a programmer to bring symbols from a different scope into the
local scope.  See https://www.mathworks.com/help/matlab/ref/import.html.

Although functions can always be used with their fully qualified names, it can
be tedious to do so.  For example,


s = java.lang.String ("Hello World");


If Java strings are going to be used throughout the code it makes the code
more readable if the symbol can be imported.


import java.lang.String;
s = String ("Hello World");







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51688>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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