[haiku-bugs] Re: [Haiku] #8515: GCC behaviour in method chaining should be documented (easy)

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 03 Jun 2014 06:08:54 -0000

#8515: GCC behaviour in method chaining should be documented (easy)
-----------------------------+----------------------------
   Reporter:  yourpalal      |      Owner:  pdziepak
       Type:  enhancement    |     Status:  reopened
   Priority:  normal         |  Milestone:  R1
  Component:  Documentation  |    Version:  R1/Development
 Resolution:                 |   Keywords:  doxygen
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by pulkomandy):

 One example of where this may be a problem:

 {{{
 BView* view1 = NULL;

 BGroupLayoutBuilder(target)
     .Add(view1 = new BView())
     .Add(new MyView(view1));
 }}}

 MyView constructor may get either NULL, or the newly created BView.

--
Ticket URL: <https://dev.haiku-os.org/ticket/8515#comment:12>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: