Re: dynamic library question
- From: James Henstridge <james daa com au>
- To: Daniel Weber <DWEBER1 austin rr com>
- cc: gnome-devel-list gnome org
- Subject: Re: dynamic library question
- Date: Mon, 16 Aug 1999 10:44:09 +0800 (WST)
I thought you were talking about the static keyword outside of function
blocks (as I said in my message). I think I answered the question anyway.
The static variables inside functions are per-application data. With
dynamic libraries, only code and non-modifiable data are shared between
applications.
James.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Sun, 15 Aug 1999, Daniel Weber wrote:
> James Henstridge wrote:
>
> > The static keyword on functions and variables is simply a scoping keyword
> > when used outside of a block. It is similar to the private keyword in
> > C++/Java.
> >
> > With dynamic libraries, only the code section and const data portions are
> > shared between applications. Other data is per application.
> >
> > James.
> >
> > --
> > Email: james@daa.com.au
> > WWW: http://www.daa.com.au/~james/
> >
> For some reason I was under the impression that the static keyword inside a
> function meant that the value of the variable would be maintained between
> function calls. If the code in question is a shared library, where would the
> variable be stored and linked?
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]