[haiku-bugs] Re: [Haiku] #7996: [BSlider] Range slider capability

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sat, 24 Sep 2011 12:54:56 -0000

#7996: [BSlider] Range slider capability
----------------------------------+-----------------------
   Reporter:  jwlh172             |      Owner:  axeld
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/alpha3
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+-----------------------

Comment (by anevilyak):

 Unfortunately, this patch cannot be applied as is ; it breaks binary
 compatibility in a number of ways:

 1) It changes the signature of the existing constructor, which will result
 in symbol resolution failures since this results in the mangled name
 changing.

 2) It adds an extra virtual ; one cannot change the number or order of
 virtual functions due to the fragile base class problem. BSlider has
 several reserved virtual slots for exactly this reason, you would need to
 instead replace the first one of those with your new virtual, and also add
 a compat placeholder to dispatch the old name.

 3) It changes the size of the class by adding that boolean. There is a
 block of reserved data at the end of the class for precisely this reason,
 you would need to remove a byte from there and add your boolean in its
 place.

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

Other related posts: