[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix uninitialized variables when Source_file::get_counts returns ear
From: |
Graham Percival |
Subject: |
Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047) |
Date: |
Tue, 23 Aug 2011 11:29:00 -0700 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Aug 23, 2011 at 06:21:00PM +0000, address@hidden wrote:
> Maybe we should have some GOP rules for C++ about this?
> "Only have multiple exit points from routines if you absolutely have to.
> Make sure any output parameters are declared and initialized at the top
> of a routine so that however a routine exits, they are left in a defined
> state"
I don't think we need to wait that long (i.e. at least a month, if
not 2 or 3 months to get through GOP). Regardless of the exit
points, any member variables or output parameters should be left
in a defined state. IMO that's just basic sanity. :)
Cheers,
- Graham
- Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), reinhold . kainhofer, 2011/08/23
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Carl . D . Sorensen, 2011/08/23
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), ianhulin44, 2011/08/23
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047),
Graham Percival <=
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Carl Sorensen, 2011/08/23
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Ian Hulin, 2011/08/24
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), David Kastrup, 2011/08/24
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Reinhold Kainhofer, 2011/08/24
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Dan Eble, 2011/08/24
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), David Kastrup, 2011/08/24
- Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Dan Eble, 2011/08/24
Re: Fix uninitialized variables when Source_file::get_counts returns early due to !contains (pos_str0) (issue 4940047), Han-Wen Nienhuys, 2011/08/24