Does C++ Spec allow static_cast of polymorphic objects?234 (11/26/2008 4:07:57 AM) comp.lang.c++ Hi. I saw that some web sites say that static_cast cannot be used to downcast polymorphic classes. For instance, given class Base { public: Base(){} virtual ~Base(){} int getThree() { return 3; }... kk_oop
Problem returning const pointer323 (10/22/2008 10:05:27 PM) comp.lang.c++ Hi. I just wrote a function that returns a const pointer: MyClass { .... public: virtual ReturnClass * const getReturnClass( ); .... } I then wrote some code that calls the function to make sure the pointe... kk_oop
iostream::write for a composite class1030 (7/19/2008 11:50:25 AM) comp.lang.c++ Consider class X and Y where: class X { double d; int i; Y myY; }; class Y { int h; int g; }; If I pass the address of an instance of X (cast to a char *) to a binary ofstream's write() method, ind... kk_oop
Template function: Can it tell if parameter is primitive or class?429 (7/18/2008 9:35:58 PM) comp.lang.c++ In C++, is there a way for a template function to determine at runtime if its template parameter is a primitive type vs. a class? I want to do something like this: template void doThis( T ) { if (T is a pri... kk_oop
C++ Component Dependencies324 (3/18/2008 12:16:01 AM) comp.lang.c++ I've got a question about "component" dependencies in C++. For this discussion, I'm considering a component to be a group of classes that implement a service provided to other components via an interface or vi... kk_oop
Identifying C++ Component Dependencies417 (3/18/2008 12:14:20 AM) comp.object Hi. I've got a question about "component" dependencies in C++. For this discussion, I'm considering a component to be a group of classes that implement a service provided to other components via an interface ... kk_oop
ExtUtils chmod on Windows?175 (8/10/2007 12:57:32 PM) comp.lang.perl.misc Hi. When running a Perl script on Windows, can the ExtUtils::Command's chmod function be used to alter read-only status of files? See http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/ExtUtils/Command.... kk_oop
GPL Only Linux Service APIs?332 (3/20/2007 12:50:47 AM) comp.os.linux.advocacy I saw this at the GNU GPL FAQ (http://www.gnu.org/licenses/gpl- faq.html#PortProgramToGL): "If I port my program to GNU/Linux, does that mean I have to release it as Free Software under the GPL or some other F... kk_oop
Expose Interface Contracts for Component Periodics?320 (3/1/2007 12:42:55 PM) comp.object Hi. I'm working on an architecture consisting of a group of interacting components. By a component, I mean a cohesive group of classes that offer their behavior to other components through a well defined inte... kk_oop
Memory leak detection tools?843 (11/2/2006 11:41:24 PM) comp.lang.c++ Hi. Any recommendations for memory leak detection tools for C++ running on Linux or Solaris? I'm interested in static (compile time) and runtime detection. It's for a large project. Thanks! Ken ... kk_oop
OO Unit Test Question612 (12/27/2005 7:32:19 PM) comp.object Here's a unit test question. - Consider class A and Class B. - A has an attribute of type B. - A.doA( ) calls B.doB( int x). - B.doB returns a bool needed by A. It is false if parameter x is not valid. - B is... kk_oop(242)
Java wrappers around Ada?930 (3/22/2006 1:01:31 PM) comp.lang.ada Hi. My team has a bunch of legacy Ada code. Our new code is being written in Java. However, we still have many complex algorithms written in thousands of lines of Ada. Rather than rewriting the tested/valid... kk_oop(242)
Java facade to Ada code?538 (3/22/2006 1:03:20 PM) comp.lang.java.programmer Hi. My team has a bunch of legacy Ada code. Our new code is being written in Java. However, we still have many complex algorithms written in thousands of lines of Ada. Rather than rewriting the tested/valid... kk_oop(242)
Init syntax for checked array template?326 (4/24/2006 12:36:27 PM) comp.lang.c++ Hi. I recently wrote a simple little template that defines an array that checks attempts to use out of bounds indexes. The only problem is that it does provide the use array style value initialization when th... kk_oop(242)
Object member with constructor parameter?430 (4/25/2006 12:54:46 AM) comp.lang.c++ Hi. I want class B to have a member of class A. Class A's constructor takes an int parameter. Here are the classes: Here's A.h***************** #ifndef A_H_ #define A_H_ class A { public: A(int theX); vi... kk_oop(242)
Expose Interface Contracts for Component Periodics?320 (3/1/2007 12:42:55 PM) comp.object Hi. I'm working on an architecture consisting of a group of interacting components. By a component, I mean a cohesive group of classes that offer their behavior to other components through a well defined inte... kk_oop(242)
Good OOP book522 (3/16/2008 5:11:07 PM) comp.object I have programmed in C language, but i'm totally unexpert about object oriented programming. I'm searching a good book academic style because i'm not interested about a specific language, but i want know the ba... lionelgreenstreet(6)
iostream::write for a composite class1030 (7/19/2008 11:50:25 AM) comp.lang.c++ Consider class X and Y where: class X { double d; int i; Y myY; }; class Y { int h; int g; }; If I pass the address of an instance of X (cast to a char *) to a binary ofstream's write() method, ind... kk_oop(242)
Good OOP books614 (3/9/2011 6:42:51 PM) comp.object What are good OOP books (preferabley C++) to master OOP? I dont have any specifially OOP books yet, so time to buy some. I would like to study advanced level. I know basics already. ... no1792(94)