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: Ruslan Zasukhin <email@hidden>
- Date: Wed, 03 Nov 2010 18:26:14 +0300
- Thread-topic: FastEnumeration for TWO kinds of objects in class.
On 11/3/10 7:02 PM, "Christiaan Hofman" <email@hidden> wrote:
> 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.
right
> 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.
This page gives nice answers
http://stackoverflow.com/questions/4087958/interesting-task-for-fast-enumera
tion-protocol
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden