octave-maintainers
[Top][All Lists]
Advanced

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

Minor odd things about get(0,...)


From: Michael D Godfrey
Subject: Minor odd things about get(0,...)
Date: Sun, 27 Sep 2009 17:05:26 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Thunderbird/3.0b4

I was working on better explanation of get() and noticed:

1. get(0) and get(0,"") produce similar but not exactly the
    same output.  If you try these 2 commands you will see:

   1.1 get(0) does not sort its list, get(0,"") does.  Not quite
         a bug, more an observation.
   1.2 There is one property missing from the get(0) list:
         __myhandle__ . get(0,"__myhandle__") returns ans=0.
         And, of course, so does get(0,"__my")
   1.3 "default" appears to be a special case.  It is not in the
         property lists,  and get(0,"def") gives:
         error: get: unknown root property def
         But, get(0, "default") returns:
        ans =
       {
           0x0 struct array containing the fields:

       }
=============================================
Should I try to explain this, or just pretend I did not notice?
For now, I will write the description as if these minor items did
not exist, i.e. I will say something like get(0) and get(0,"") both
return lists of the properties for the root handle.

Michael


reply via email to

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