[haiku-bugs] Re: [Haiku] #7701: BMessage::FindString() behaves differently from BeOS's when field does not exist

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Wed, 15 Jun 2011 20:51:24 -0000

#7701: BMessage::FindString() behaves differently from BeOS's when field does 
not
exist
------------------------------------+----------------------------
   Reporter:  ttcoder               |      Owner:  axeld
       Type:  bug                   |     Status:  new
   Priority:  normal                |  Milestone:  R1
  Component:  Kits/Application Kit  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by ttcoder):

 Replying to [comment:1 anevilyak]:
 > and does not depend on side effects that aren't guaranteed or
 documented.

 Ok roger that, I can live with Haiku's FindString() remaining as it is.
 The BeOS implementation makes more sense to me (consistency of behavior
 between FindInt32() and FindString(), and above all, allowing client code
 to be more simple and elegant) but not too many devs rely on this
 'feature' of BMessage like I do, I suppose.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7701#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: