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

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

[Octave-bug-tracker] [bug #64690] VM has issues with script files contai


From: anonymous
Subject: [Octave-bug-tracker] [bug #64690] VM has issues with script files containing a function
Date: Mon, 18 Sep 2023 03:53:56 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64690>

                 Summary: VM has issues with script files containing a
function
                   Group: GNU Octave
               Submitter: None
               Submitted: Mon 18 Sep 2023 07:53:53 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 18 Sep 2023 07:53:53 AM UTC By: Anonymous
https://docs.octave.org/latest/Script-Files.html:

"Even though a script file may not begin with the function keyword, it is
possible to define more than one function in a single script file and load
(but not execute) all of them at once. To do this, the first token in the file
(ignoring comments and other white space) must be something other than
function."


File test.m
----------------
1;

function ret = test1(x)
      ret = x;
endfunction

y = test1(1);

disp(y);
-----------------


'__compile__("test")'
error: Not implemented ./../libinterp/parse-tree/pt-bytecode-walk.h:292


OR

 
__enable_vm_eval__ (1);
source test.m
warning: Auto-compilation of test failed with message Not implemented
./../libinterp/parse-tree/pt-bytecode-walk.h:292
1









    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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