Policy for return by reference values in error cases

Joel Sherrill joel at rtems.org
Thu Mar 25 18:22:09 UTC 2021


On Thu, Mar 25, 2021, 1:16 PM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 23/03/2021 20:21, Gedare Bloom wrote:
>
> >> On Tue, Mar 23, 2021 at 12:58 PM Sebastian Huber<
> sebastian.huber at embedded-brains.de>  wrote:
> >>> On 23/03/2021 18:48, Joel Sherrill wrote:
> >>>
> >>>> My first thought is that I don't like covering up for applications
> >>>> that do the wrong thing.
> > +.5
> >
> >>> This topic just came up recently in a discussion about defensive
> >>> programming. We also test for NULL pointers.
> > +1
> Ok, I will leave it as it is for now unless there is a strong desire to
> change this.
>

Is this one of our small rules in the coding style?

>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210325/ee9bc887/attachment.html>


More information about the devel mailing list