Re: How to know instance name?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Angel Mateos" <amateos@xxxxxxxxx> a écrit dans le message de news:
ufqWAuRkGHA.3304@xxxxxxxxxxxxxxxxxxxxxxx

| sorry but what I want to know is the name of the variable that has
| instanciated the class

Variables don't have "names", the word you see in the code is simply for
your convenience; the reality is that the compiler knows variables as
addresses in memory.

It would certainly be impossible for a class to be able to return any one
name, as there could be thousands of instances of the same class.

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer


.



Relevant Pages

  • Re: Unit Testing Model-View-Presenter
    ... Joanna Carter [TeamB] wrote: ... | into the chain while unit testing. ... Consultant Software Engineer ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Generics + D2007/win32
    ... But then I did use Delphi templates in include files as a short-term "fix". ... Joanna Carter [TeamB] ... Consultant Software Engineer ...
    (borland.public.delphi.non-technical)
  • Re: Get name of instance of object
    ... meaningless. ... Joanna Carter [TeamB] ... Consultant Software Engineer ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: But a fool with a tool is still a fool
    ... now that is worthy of speculation :-) ... Joanna Carter [TeamB] ... Consultant Software Engineer ...
    (borland.public.delphi.non-technical)
  • 64-bits is not necessarily faster ?
    ... who should know a thing or two about shuffling large chunks of memory around as fast as possible. ... Joanna Carter [TeamB] ... Consultant Software Engineer ...
    (borland.public.delphi.non-technical)