OK. I got food and tea now, so let's disagree.zloba wrote: I find your posting to be quite good, if somewhat disagreeable.
I can have that with C++ classes, Perl modules, Java packages... come again, why do I need COM?When used properly, it helps manage complexity, by breaking up funcitonality into components.
I didn't say Java is another component technology. (Java Beans are, unless I'm mistaken.) I quoted Java as another attempt at solving all the problems of the universe, another technology hyped as the miracle cure. Just like Java is just another language, COM is just another component technology.been there, done that. not quite the same thing.Look at Java for another such attempt.
Heh. Yet still, the OsKit framework thinks it's a good idea glueing kernel components together with a COM-like interface. Blah.i agree, kernel is a different story (kinda obvious).Use COM for things it is good at. It is certainly not good in kernel space.
I haven't felt the need for a component system like that; not in my private projects, and not at work....but i find it to be quite good for pretty much anything else i can think of
Erm... come to think of it, we have some COM at work. My job is with an enterprise-level data distribution service; some customers demanded a COM client interface so they could use our service in their damned Excel sheets, so we wrapped some COM around our C++ client lib... just as we wrapped some XML around the same lib to satisfy some other costumers.
We could have made all the units and components of our server software COM objects. We didn't. Why? Because that would needlessly add another thing to the list of skills you'd need to work on our software. We're very happy using the features of C++, since the only thing we needed COM for was for the Windows clients. There, it was good. Everywhere else, it would just have added code lines, interfaces, and trouble.
You didn't yet state where you feel lack of control. If you have issues with C++, feel free to send me a message, and I'll happily try to work out something.i do want to keep the same OO, but have more control over it and other things.
It's the very concept of macros I despise, and templates aren't macros. They're more, and most of all, type- and scope-aware as you demanded.and "macros" refer to the concept in general, not excluding templates...
I might add they also allow to outperform C (!) in several crucial areas.
GoTo COM by Addison Wesley.interesting, what is the title/author?Funny that one of the best books on COM...
Yep. Goes for every language I know of, and that's why I wouldn't touch COM (or any other component technology) unless I need a component technology.i can do everything i need to implement COM objects in C++. its just all the extra typing that i find awkward. mo' typing, mo' typos, mo' time wasted, less gets done.
I fully ACK with that. The thing is, complex languages have trouble with virtually every kind of component technology, simply because they have a more versatile object model than what those component technologies allow for.i talked to a few people having skills similar to mine, and they agreed that C++ could use improvement.
You always have to "squeeze" them into a corset. Just like "managed C++" in the .NET scheme. Simpler languages like C or VB fit in there quite easily, but as a C++ coder, you always "feel" the difference.
well, i can. not only that, i intend to implement one. and yes, i know what that means.I can hardly picture a language giving me more control than C++, except perhaps Assembly.
Good luck with that. But you'll end up with the chicken-and-egg problem. There are much better languages out there, but no-one uses them because... well, because no-one uses them.
That was one of the reasons why C++ was made a superset of C - you could take your C skills (and C code), and venture into C++ land, step by step. That's what made C++ so successful. And ugly.
I won't doubt you can come up with a "cleaner" language. But will it be as fast, suited for system programming as well as enterprise applications, as well-supported, as well-documented, with so many libraries, compilers, and tutorials available?
Not meaning to discourage you. But the uglyness of C++ and its success go hand in hand, stupid as that may sound.