On Sunday, September 29, 2002, at 03:27 pm, Ruslan Zasukhin wrote:
> Man, this is THIRD MODEL that Valentina can support -- > Pure Object Orineted database. > > This is when > 1) some classes marked as persistent > 2) for each row in fact user get instance of that class. > > Here we have 2 branches: > A) totally own implementation > B) following by ODMG standard > > Agree?
Do you mean that this is the third model that Valentina will support in 2.0? I don't see it anywhere at the moment.
> I just try discuss a little with you language itself: > Objective-C against C++ ? > > We can start other thread on this ? > May be you know some URL that answer on this ? > What can I do with Objective C more easier and effectively than in C++ > ?
Well, for example, there is a generic object type, "id". You can see if an object responds to a selector (a selector is basically a method name) at runtime, and if it does, make it perform that selector. You can pass selectors as arguments to methods. etc, etc. Basically, a lot more happens at runtime which would happen at compile time in C++. For example, you could do something like this:
id anObject; // assume this exists and points somewhere if ([anObject respondsToSelector:@selector(stringValue)]) { NSString *myString = [anObject stringValue]; NSLog(@"myString: % at ", myString); }
Perhaps not the best example, but it should give you the general idea D.O.T I'm sure this has been discussed at length before on macosx-dev and cocoa-dev :-)
>> I did have some code for VBitSet, VBitSetIterator, etc but I removed >> it >> since I didn't see it present in any of the other APIs :-) > > As I have mention, I think in future versions this classes must be > added to > ALL products that has OO support: VJDK, V4RB, VCOM, V4Cocoa.
OK, agreed.
-- Finlay ©2002 Finlay Dobbie |