[haiku-development] Re: Issue adding deskbar replicant from a server

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 20 Jan 2017 18:56:18 +0100

On Fri, Jan 20, 2017 at 6:25 PM, looncraz <looncraz@xxxxxxxxxxxx> wrote:

On 1/20/2017 08:53, Dario Casalinuovo wrote:


Even if the return type doesn't affect the binary so the function is
found correctly, the bebook states BArchivable::Instantiate should always
return a BArchivable* object.


DeskbarShelfView *IS* a BArchivable via the magic of inheritance
(BView:BHandler:BArchivable, IIRC).

Returning a non-BArchivable object would cause problems aplenty


I think you didn't read carefully the whole thread, this is pretty obvious
: )

I referred to defining the function return type as BArchivable or
BArchivable-derived.

Other related posts: