octave-maintainers
[Top][All Lists]
Advanced

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

Re: rc/ov.h:166: warning: 'octave_value::rep' should be initialized in t


From: Jordi Gutiérrez Hermoso
Subject: Re: rc/ov.h:166: warning: 'octave_value::rep' should be initialized in the member initialization list
Date: Fri, 14 Jan 2011 15:59:13 -0600

On 14 January 2011 15:45, CdeMills <address@hidden> wrote:
> To Jordi: thanks for the explanations. I've still question though: where is
> the static variable stored ?

The visibility of the nil_rep symbol is only inside the ctor. It's a
function-level visibility. As far as memory, the storage is static, so
you can access it with pointers and references from other places
outside of the function. Its lifetime is for the entire duration of
the program after the function (ctor) is first called.

- Jordi G. H.


reply via email to

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