This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Remove unnecessary ObjC declaration



On 25 Oct 2004, at 19.47, Timothy J.Wood wrote:


On Oct 25, 2004, at 6:43 PM, Ziemowit Laski wrote:

Whenever an ObjC program declares a class, e.g.,

  @interface Foo
   :
  @end

the compiler currently synthesizes

extern objc_object *_Foo;

Maybe this used to be used for constant string instances? Even so (and it seems unlikely), it would be better if the name it generated couldn't be generated by a user program (like ".objc_class_name_Foo").

My current hypothesis is that '_Foo' used to be old name for '.objc_class_name_Foo', before someone noticed the potential for name collisions...


--Zem


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]