BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ping ISO Guys
Goto page 1, 2  Next
 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
JD
Guest





PostPosted: Thu Apr 19, 2007 7:56 am    Post subject: Ping ISO Guys Reply with quote



I'm looking for what the standards explicitly state about local
static variable allocation and storage.

Could someone please point me in the right direction?

~ JD
Back to top
David Dean [CodeGear]
Guest





PostPosted: Thu Apr 19, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote



In article <4626cc3b$1 (AT) newsgroups (DOT) borland.com>,
"JD" <nospam (AT) nospam (DOT) com> wrote:

Quote:
I'm looking for what the standards explicitly state about local
static variable allocation and storage.

Could someone please point me in the right direction?

You probably picked a bad time to ask. IIRC, the ACCU conference is
going on right now.

--
-David Dean
CodeGear C++ QA Engineer
<http://blogs.codegear.com/ddean/>
Back to top
JD
Guest





PostPosted: Thu Apr 19, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote



"David Dean [CodeGear]" <david.dean.no (AT) spam (DOT) codegear.com> wrote:
Quote:

You probably picked a bad time to ask. IIRC, the ACCU
conference is going on right now.

LOL! Just my luck!

~ JD
Back to top
Alan Bellingham
Guest





PostPosted: Thu Apr 19, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote

"David Dean [CodeGear]" <david.dean.no (AT) spam (DOT) codegear.com> wrote:

Quote:
You probably picked a bad time to ask. IIRC, the ACCU conference is
going on right now.

No, that was last week. This week, it's the ISO C++ Standards Panel
meeting. Same place, though.

Alan Bellingham
--
Team Thai Kingdom
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Back to top
David Dean [CodeGear]
Guest





PostPosted: Fri Apr 20, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote

In article <lq6e23t31ercprcnefbrjph9pi7h7qpa8a (AT) 4ax (DOT) com>,
Alan Bellingham <alanb (AT) episys (DOT) com> wrote:

Quote:
No, that was last week. This week, it's the ISO C++ Standards Panel
meeting. Same place, though.

Many of the same guys too I suspect. 8-)

--
-David Dean
CodeGear C++ QA Engineer
<http://blogs.codegear.com/ddean/>
Back to top
JD
Guest





PostPosted: Fri Apr 20, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote

Chris Uzdavinis (TeamB) <chris (AT) uzdavinis (DOT) com> wrote:
Quote:


Please see my reply to Leo.

Thanks!

~ JD
Back to top
JD
Guest





PostPosted: Fri Apr 20, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote

Leo Siefert <lIHATESPAMsiefert (AT) senate (DOT) michigan.gov> wrote:
Quote:

Storage for local statics is the same as for global statics,
only their visibility is local. This is paraphrased from the
2003 standard

Certainly, it must be more specific(?).

Quote:
(not sure about quoting copyrighted material):

As far as the standards, they're quoted here often.

Quote:
Is this what you are looking for?

Between you and Chris, everything except *where* they are
actually allocated from.

Would you by chance know what the latest version is and where
I can get it?

~ JD
Back to top
David Dean [CodeGear]
Guest





PostPosted: Mon Apr 23, 2007 12:27 am    Post subject: Re: Ping ISO Guys Reply with quote

In article <nh7h23pqmq1fft5k1ft1knc5d7u8vvc40k (AT) 4ax (DOT) com>,
Leo Siefert <lIHATESPAMsiefert (AT) senate (DOT) michigan.gov> wrote:

Quote:
As far as the standards, they're quoted here often.

According to the Copyright notice they are in violation. Not sure
about how that may be modified by the law, but it does say "no part".

I believe the quoting here falls under the "Fair use" doctrine, since
posters tend to quote small relevant sections with the intent to educate
others.

<http://en.wikipedia.org/wiki/Fair_use>

--
-David Dean
CodeGear C++ QA Engineer
<http://blogs.codegear.com/ddean/>
Back to top
Old Wolf
Guest





PostPosted: Mon Apr 23, 2007 3:34 am    Post subject: Re: Ping ISO Guys Reply with quote

"JD" <nospam (AT) nospam (DOT) com> wrote:
Quote:
Between you and Chris, everything except *where* they are
actually allocated from.

(Talking about function scope variables declared with 'static').
The C++ standard does not say 'where' anything is. Your program
could be running on a punch card processor and the 'where' could
be some particular card. It only specifies that the memory must
remain allocated for the lifetime of the program.

Someone else said that it is initialized on program startup. I
don't think this is correct: it is initialized the first time
that program execution reaches that line. For zero-initialized
variables this is a moot point; however if the code is like:

void f()
{
static int x = foo();
}

then foo() will never be called if f() is never called.

Quote:
Would you by chance know what the latest version is and where
I can get it?

ISO/IEC 14882:2003 is the latest. You can get it from the ANSI
webstore, and probably other places (JFGI).
Back to top
Hendrik Schober
Guest





PostPosted: Mon Apr 23, 2007 7:19 pm    Post subject: Re: Ping ISO Guys Reply with quote

Chris Uzdavinis (TeamB) <chris (AT) uzdavinis (DOT) com> wrote:
Quote:
"Hendrik Schober" <SpamTrap (AT) gmx (DOT) de> writes:

I believe the quoting here falls under the "Fair use" doctrine, since
posters tend to quote small relevant sections with the intent to educate
others.

http://en.wikipedia.org/wiki/Fair_use

Whatever. It's regularily copied like this in
some newsgroups by committee members.

I'm not sure I understand your position on this. Do you disagree with
"fair use"?

I meant to say that, what Dean called "fair use", is
also common use, even amongst the authors of the text.

Schobi

--
SpamTrap (AT) gmx (DOT) de is never read
I'm HSchober at gmx dot org

"My hope is that if more people start reading books,
the world will become a better place."
froarulv in afp
Back to top
Bob Gonder
Guest





PostPosted: Tue Apr 24, 2007 5:01 am    Post subject: Re: Ping ISO Guys Reply with quote

JD wrote:
Quote:
Leo Siefert wrote:

Storage for local statics is the same as for global statics,

Certainly, it must be more specific(?).

Others have said that the "specific is that the memory remain for the
duration of the program. (ie. not specific at all)

Since the data is not initialized by the compiler, but at runtime by
the owning function, there is no reason to clutter the initialized
data segment with it. The uninitialized data segment, however, would
be the perfect location for it.

It might be that other archetectures don't suipport uninitialized
data, in which case, the Standard couldn't dictate it's use (guessing)
Back to top
Old Wolf
Guest





PostPosted: Tue Apr 24, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote

Leo Siefert <lIHATESPAMsiefert (AT) senate (DOT) michigan.gov> wrote:
Quote:
Old Wolf wrote:

Someone else said that it is initialized on program startup. I
don't think this is correct: it is initialized the first time

initialization can be later (or never) if the compiler can
determine that the lack of initialization has no effect on the
execution of the program. So if it is a non-pod object compiler
must be able to determine that there are no side-effects to
initialization.

I read the text again, it is quite convoluted. I think what it is
saying is that for local static non-POD, it should be initialized
the first time that execution reaches the declaration. However,
if there are no side-effects of initialization then it can be
done earlier.
Back to top
David Dean [CodeGear]
Guest





PostPosted: Tue Apr 24, 2007 8:10 am    Post subject: Re: Ping ISO Guys Reply with quote

In article <462cc087$1 (AT) newsgroups (DOT) borland.com>,
"Hendrik Schober" <SpamTrap (AT) gmx (DOT) de> wrote:

Quote:
I meant to say that, what Dean called "fair use", is
also common use, even amongst the authors of the text.

I don't see how those two things could be seen to be mutually
exclusive.

--
-David Dean
CodeGear C++ QA Engineer
<http://blogs.codegear.com/ddean/>
Back to top
Leo Siefert
Guest





PostPosted: Tue Apr 24, 2007 4:50 pm    Post subject: Re: Ping ISO Guys Reply with quote

David Dean wrote:

Quote:
I believe the quoting here falls under the "Fair use" doctrine,

Fair use is always subject to interpretation in different situations.
The classic fair use scenario is using quotes for a review or analysis
of the copyrighted material. But even in educational settings there
have been suits based on "handouts" containing copyrighted material
for study.

If, for instance, I were to be open to responding to any question like
the OP here with the relevant sections quoted from the standards
document, then I would be essentially serving as an intelligent search
engine. Such a service could easily be seen as cutting into the
potential market for sales of the document.

More likely, though, if Borland/CodeGear were to encourage this type
of responses in this newsgroup and it were to become known that one
could generally get quoted sections of the document by posting a
request to this group they could be subject to a law suit.

- Leo
Back to top
Leo Siefert
Guest





PostPosted: Tue Apr 24, 2007 4:54 pm    Post subject: Re: Ping ISO Guys Reply with quote

Hendrik Schober wrote:

Quote:
Whatever. It's regularily copied like this in
some newsgroups by committee members.

Sometimes, but then they are not the copyright holders. The copyright
is owned by ISO/IEC/ANSI/ITI, and that's who decides whether or not to
file a suit. Legally, they probably have the right to sue members of
the committee as well - depending upon the terms of the contract with
them.

- Leo
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.