🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3761

What happens when ...

#3761
From: JD
Date: Sat, 06 May 2006 15:14
24 lines
1392 bytes
I'm dealing with some old legacy code and have a couple of
questions because I would never code it as it is.

What's actually happening internally when a local variable is
declared as such:

    char *ptr = "XXX";

The other question is about structure that declares a member of
it's own type within it's definition. For example:

    struct TSomeStruct
    {
        ....
        TSomeStruct *x;
        TSomeStruct *y;
    };

This compiles without warnings or errors but I would expect it
not to because it looks to me like it's an incomplete data type
when it hits x & y.

~ JD
Technical Details
Message-ID: <445cbd5d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2f21d80b956d055f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: What happens when ...
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 205.188.116.136     
X-Forwarded-For: 172.128.7.198
NNTP-Posting-Host: 207.105.83.66
Message-ID: <445cbd5d$1@newsgroups.borland.com>
Date: 6 May 2006 08:14:37 -0700
X-Trace: newsgroups.borland.com 1146928477 207.105.83.66 (6 May 2006 08:14:37 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail