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

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

[Octave-bug-tracker] [bug #31821] Function handles for nonexisting funct


From: jkirby
Subject: [Octave-bug-tracker] [bug #31821] Function handles for nonexisting functions
Date: Wed, 08 Dec 2010 02:10:55 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5

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

                 Summary: Function handles for nonexisting functions
                 Project: GNU Octave
            Submitted by: jkirby
            Submitted on: Wed 08 Dec 2010 02:10:54 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: jkirby
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Other

    _______________________________________________________

Details:

This is a direct copy from a discussion a few years ago: 
http://octave.1599824.n4.nabble.com/Function-handles-for-nonexisting-functions-td1654944.html

"In Matlab, I can create function handles to nonexisting functions 
using str2func or the @ operator. Only when I try to call the 
function, an error like the following occurs: 

??? Undefined function or method 'blabla' for input arguments of type
'double'. 

In Octave, it seems that existance of the function is checked already 
upon creation of the function handle. This means that the str2func or 
@ call can fail with something like 

error: error creating function handle "@blabla" 

which would not happen in Matlab."

It would be nice to have this lazy-evaluation in Octave.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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