Article View: borland.public.cppbuilder.nativeapi
Article #17036Re: odd question...how to know variable name
From: Remy Lebeau (TeamB)
Date: Fri, 11 Apr 2003 01:17
Date: Fri, 11 Apr 2003 01:17
17 lines
1446 bytes
1446 bytes
"Brian Dumas" <brian@kvdco.com> wrote in message news:3e95d8a6$1@newsgroups.borland.com... > Is there a way for my constructor, or any class function > to "know" that the instance name is "AAA"? Nope. Variable names don't exist at runtime, they are resolved to memory addresses at compile time. > I want o use it for named shared memory. Just pass a string literal as another parameter to the constructor and use that instead. Gambit
Technical Details
Message-ID:
<3e961798$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3e95d8a6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,289eae8b8f86e355 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-10 18:19:29 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e95d8a6$1@newsgroups.borland.com> Subject: Re: odd question...how to know variable name Date: Thu, 10 Apr 2003 18:17:35 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e961798$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050023832 207.175.226.26 (10 Apr 2003 18:17:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail