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

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

[Octave-bug-tracker] [bug #64703] VM machine has issues to cope with fun


From: anonymous
Subject: [Octave-bug-tracker] [bug #64703] VM machine has issues to cope with functions containing both inline as well as nested functions
Date: Thu, 21 Sep 2023 01:54:11 -0400 (EDT)

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

                 Summary: VM machine has issues to cope with functions
containing both inline as well as nested functions 
                   Group: GNU Octave
               Submitter: None
               Submitted: Thu 21 Sep 2023 05:54:09 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: Thu 21 Sep 2023 05:54:09 AM UTC By: Anonymous
The VM machine has issues to cope with functions containing both inline as
well as nested functions.


test1.m
------------------------------------------

function retval = test1(x)
  retval = zeros(2,1);

  f1 = @(x) 3 .* x;
  retval(1) = f1(x);

  function [ ret ] = f2(x)
    ret = 4 .* x;
  endfunction

  retval(2) = f2(x);
endfunction
-------------------------------------------


__enable_vm_eval__ (0); test1(1)
ans =

   3
   4


__enable_vm_eval__ (1); test1(1)
warning: Auto-compilation of anonymous function failed with message Inlined or
scoped functions are not supported by the VM yet
warning: called from
    test1 at line 3 column 10

ans =

   3
   4







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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