Re: FastEnumeration for TWO kinds of objects in class.
Re: FastEnumeration for TWO kinds of objects in class.
- Subject: Re: FastEnumeration for TWO kinds of objects in class.
- From: Christiaan Hofman <email@hidden>
- Date: Wed, 3 Nov 2010 17:02:35 +0100
On Nov 3, 2010, at 16:09, Sherm Pendley wrote:
> On Wed, Nov 3, 2010 at 8:58 AM, Ruslan Zasukhin
> <email@hidden> wrote:
>>
>> I wonder if this is possible?
>>
>> Let we have class Vdatabase, which have few kinds of sub-elements
>> Tables
>> Links
>> Indexes
>> Triggers
>>
>> We was able make FastEnumeration for Tables.
>> But we need more ?
>>
>> Is it possible?
>>
>> for( Vtable pTable in db )
>>
>> And
>>
>> for( VLink pLink in db )
>>
>> And so on?
>
> That *should* work - what problems are you having that lead you to
> think it might not?
>
> sherm--
Not really. These two statements will do *exactly* the same thing. In Obj-C the typing for objects does not matter for compilation, it only affects compile time *checking* (this is not C++). This also means that one of these would be lying about the class. Apart from that, strong typing requires the *.
Of course you should know all that if you'd read a minimum of introduction to Obj-C.
And of course, as was said, this is the wrong list.
Christiaan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden