[cfe-commits] r101953 - /cfe/trunk/lib/AST/Decl.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Apr 21 08:42:37 PDT 2010
On Apr 20, 2010, at 10:56 PM, Douglas Gregor wrote:
>
> On Apr 20, 2010, at 5:20 PM, Fariborz Jahanian wrote:
>
>>
>> On Apr 20, 2010, at 4:59 PM, Douglas Gregor wrote:
>>
>>>
>>> On Apr 20, 2010, at 4:24 PM, Fariborz Jahanian wrote:
>>>
>> Except for meta-data for the class (and its metaclass), othere meta-
>> data have non-external linkage.
>> Content of all non-external metadata, however, can be inspected
>> with various APIs. In that respect they are 'external'.
>> But not wrt linkage.
>
> I'm looking at linkage more from the language perspective. For
> example, say we have:
>
> @interface A
> @end
>
> A *an_A;
>
> Is this code well-formed? In C++, it actually depends on the linkage
> of A: if A has no linkage, then the program is ill-formed because
> an_A does have linkage. Also, one could imagine instantiating a
> template over an Objective-C class (or pointer to one), e.g.,
>
> std::vector<A *> a_objects;
>
> which also requires A to have linkage.
Ok thanks. I was more thinking along 'linkage' as in 'linking' :).
- Fariborz
>
>
> - Doug
More information about the cfe-commits
mailing list