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

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

[Octave-bug-tracker] [bug #40462] type does not display functions define


From: anonymous
Subject: [Octave-bug-tracker] [bug #40462] type does not display functions defined on the command line
Date: Sun, 03 Nov 2013 23:24:11 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 Iceweasel/20.0

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

                 Summary: type does not display functions defined on the
command line
                 Project: GNU Octave
            Submitted by: None
            Submitted on: dim. 03 nov. 2013 23:24:10 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Adrian
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following produces an error:


>> function y=foo y=42; endfunction
>> foo
42
>> type foo
error: type: 'foo' undefined
>>

The help says that type will "Display the definition of each NAME that refers
to a function", so I expected to see foo's definition.
It seems that "type" works properly for functions defined in a *.m file, but
not for functions declared interactively.

I use octave 3.6.4 on Debian-GNU/Linux, but according to Philip Nienhuis this
bug is still present in the development branch 3.7.7+ (see bug #40452
<https://savannah.gnu.org/bugs/index.php?40452> on clearing this type of
functions), whence the 'dev' release tag on this bug.

cheers, Adrian





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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