bugGNU Octave - Bugs: bug #42620, exist() does not use...


bug #42620: exist() does not use "class" argument

Submitted by:  Rik <rik5>
Submitted on:  Wed 25 Jun 2014 08:57:03 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 17 Apr 2019 09:57:26 PM UTC, comment #2: 

It seems that exist returns 8 only for classdef.  On Matlab,

x = exist ('containers.Map')
x = 8
y = exist ('ftp')
y = 2

The return value 2 just means an m-file exists on the path, nothing special.

Rik <rik5>
Project Administrator
Wed 17 Apr 2019 06:22:04 PM UTC, comment #1: 

Does Matlab's exist function return 8 for both classdef and legacy classes, or just classdef?

John W. Eaton <jwe>
Project Administrator
Wed 25 Jun 2014 08:57:03 PM UTC, original submission:  

exist() has not been extended on the classdef branch (version 4.2) to return 8 when the input is a class name.

Rik <rik5>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by amro_octave
  • -email is unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-17 rik5 StatusNone => Confirmed
    2016-12-09 amro_octave Carbon-Copy- => Added amro_octave

    Back to the top

    Powered by Savane 3.6