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

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

[Octave-bug-tracker] [bug #32497] Matlab differences when using abbrevia


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #32497] Matlab differences when using abbreviated PROPERTY names
Date: Wed, 10 Sep 2014 07:33:35 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0

Follow-up Comment #7, bug #32497 (project octave):

Maybe a reasonable solution for this bug would be to not allow the abbrev
matching to search also for hidden properties names. A user can't know that a
given pattern is ambiguous as long as the following test returns true:


pattern = "horiz";
fields = fieldnames (get (text ())); 
tst = @cellfun (@(s) strncmp (pattern, s, length (pattern)), fields);
sum (tst) == 1




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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