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

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

[Octave-bug-tracker] [bug #42620] exist() does not use "class" argument


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #42620] exist() does not use "class" argument
Date: Wed, 8 Sep 2021 14:50:37 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Follow-up Comment #3, bug #42620 (project octave):

updating for v6.3.0:

old style class:

>> exist('ftp')
ans = 2


classdef style class:

>> exist('inputParser')
ans = 2


Octave seems to have trouble finding containers.Map:

>> exist('containers.Map')
ans = 0

>> which containers.Map

>> A = containers.Map()
A =

  containers.Map object with properties:

    Count     : 0
    KeyType   : char
    ValueType : any



Matlab 2021a:

>> exist('ftp')
ans =
     2
>> exist('inputParser')
ans =
     2
>> exist('containers.Map')
ans =
     8




it seems to not matter so much if it's old style or classdef.  I created two
dummy classes.  myclassdef and @myoldclass/myoldclass.m

with both in the path:



Matlab 2021a:


>> exist(myoldclass)

ans =
     2

>> exist('myclassdef')
ans =
     2




same results in Octave. not sure what sets containers.Map apart in Matlab.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?42620>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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