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

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

[Octave-bug-tracker] [bug #34823] bad name in constructor produces no wa


From: Juan Pablo Carbajal
Subject: [Octave-bug-tracker] [bug #34823] bad name in constructor produces no warning
Date: Mon, 14 Nov 2011 20:51:42 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2

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

                 Summary: bad name in constructor produces no warning
                 Project: GNU Octave
            Submitted by: juanpi
            Submitted on: Mon 14 Nov 2011 08:51:41 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: KaKiLa
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Given a class folder mypath/@aclass

In the constructor file for the class @aclass

mypath/@aclass/aclass.m

if the function inside has any name...for example


function a = LOCOnstructor ()
  x = dbstack();
  disp(x(1).name);
  a = class (struct(), 'aclass');
endfunction

in the interpreter (after adding path to mypath )


> aclass()
LOCOnstructor
ans = <class aclass>


Without giving any warning about the mismatch in names





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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