octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?


From: John W. Eaton
Subject: Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?
Date: Fri, 21 Jul 2017 12:54:14 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 07/21/2017 12:31 AM, Rik wrote:

There were only a few instances of static buffers which I changed to use
local variables in this cset
(http://hg.savannah.gnu.org/hgweb/octave/rev/cda0614beaec).

Thanks.

I admit to having to read about the meaning of this type of statement that appears in your patch:

  int arg_used[7] {};

and I'm still a bit confused. Is there any difference between this syntax and

  int arg_used[7] = {};

?  They both initialize the elements of the array to 0, correct?

Should we have a preferred style for this?

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]