devxlogo

October 12, 1999

dynamic_cast implementation

Question: How does dynamic_cast work? How is it implemnted in compilers? Answer: dynamic_cast accesses the runtime type information that C++ automatically generates for every polymorphic class. This information is stored

Bit Classes

Question: Are there power bit set classes around that can do what Verilog, VHDL can do so easily? a[3:2,0] = b[4:1] & c[5]; // collections of width n mixed with

Opaque Pointer

Question: What exactly is an opaque pointer? Answer: The term “opaque pointer” is used in component-based programming, e.g., COM and CORBA. It refers to a pointer to an object of