[Top][All Lists]

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

[Octave-bug-tracker] [bug #49169] Class can't be called from builtin fun

From: Ll
Subject: [Octave-bug-tracker] [bug #49169] Class can't be called from builtin function.
Date: Fri, 23 Sep 2016 20:24:13 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36


                 Summary: Class can't be called from builtin function.
                 Project: GNU Octave
            Submitted by: pipeng
            Submitted on: Fri 23 Sep 2016 08:24:11 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: GNU/Linux



As the title says, when we use the class function to set the class works fine
in @foo/foo.m, but if we instead call it directly we call it with the builtin
function send the error:

error: class: 'foo' is invalid as a class name in this context
error: called from
    foo at line 184 column 5

only to be clear, this works:

class(f, 'foo', expr)

this don't works:

builtin('class', f, 'foo', expr)

Why we can need call class with builtin?, when we overload the class function
of @foo only to get data instead of set.
To others examples imagine!

Thx. Cya.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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