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

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

[Octave-bug-tracker] [bug #48726] caseless_str overloads compare and inv


From: Rik
Subject: [Octave-bug-tracker] [bug #48726] caseless_str overloads compare and inverts meaning
Date: Thu, 11 Aug 2016 17:57:22 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #8, bug #48726 (project octave):

I've never liked the use of the .compare() function.  Mainly, because I think
the code is cleaner and more concise if one can use operators like '==' and
'!='.  Those are defined for regular string objects, but not for caseless_str
objects.  I tried a while ago to actually overload those operators, but ran in
to difficulties and abandoned the project.

I think anything you want to do to improve this is probably alright.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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