[Ardour-Dev] Hello, some tech talk, etc.

Paul Davis paul at linuxaudiosystems.com
Thu Jul 5 07:04:13 PDT 2012


On Thu, Jul 5, 2012 at 8:38 AM, Tim Mayberry <mojofunk at gmail.com> wrote:

>
> To me it seems like many of the uses of goto in the ardour source
> result from a more "C style" of programming and with a little
> refactoring many could be removed if that was a goal.
>

agreed.


> One other "C style" practice I notice a lot is using an int as a
> return type to indicate success(0)/failure(-1) rather than
> bool(success=true, failure=false). I find this a little confusing
> sometimes when reading through the code being more used to C++ style.
>

the int return style comes a desire to potentially return different error
codes, and also the consistency with system calls. but i agree that its
sort of a wash at this point and that C++ style would suggest more bool
returns.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ardour.org/pipermail/ardour-dev-ardour.org/attachments/20120705/be9ec188/attachment-0002.htm>


More information about the Ardour-Dev mailing list