Article View: borland.public.cppbuilder.nativeapi
Article #17034Re: odd question...how to know variable name
From: Ed Mulroy [TeamB]
Date: Thu, 10 Apr 2003 21:08
Date: Thu, 10 Apr 2003 21:08
20 lines
1647 bytes
1647 bytes
At compile time the name of a variable, including the name of an instance of a class, is known. When the function of compiling and linking is done the name is no longer known. . Ed > Brian Dumas wrote in message > news:3e95d8a6$1@newsgroups.borland.com... > > Is this possible (I think not, but heck, I'll ask anyway) > > lets say I have a class TMyClass. > > When a user has a variable of TMyClass, can my class > know the variables name. For example > TMyClass AAA; > > Is there a way for my constructor, or any class function > to "know" that the instance name is "AAA"? I want o > use it for named shared memory.
Technical Details
Message-ID:
<3e95dd5c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!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 14:17:48 PST From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> 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 17:08:13 -0400 Lines: 22 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: 24.74.175.102 Message-ID: <3e95dd5c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050008924 24.74.175.102 (10 Apr 2003 14:08:44 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail