Connecting Tech Pros Worldwide Help | Site Map

C++ with interfaces

  #1  
Old July 22nd, 2005, 09:59 AM
christopher diggins
Guest
 
Posts: n/a
I have written and posted a C++ language extension (HeronFront) which
demonstrates how interfaces can significantly outperform designs that use
multiple inheritance of abstract base classes.

For example the NaiveInt class in the following example in C++ :
http://www.heron-language.com/abc-example.html when rewritten using
interfaces in HeronFront (
http://www.heron-language.com/hfront-example.html ) takes 1/8th the size and
runs signficantly faster. The only drawback are that interface references
take two pointers instead of one pointer like to an abstract base class.

The code and examples are available for download at
http://www.heron-language.com/heronfront.html . I would appreciate any and
all feedback.

Thanks in advance.

Christopher Diggins
http://www.cdiggins.com




Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use Generics with interfaces? =?Utf-8?B?TXJOb2JvZHk=?= answers 9 June 23rd, 2007 04:15 PM
Elegant design with interfaces (in C#) _dee answers 18 June 27th, 2006 02:35 PM
"C++ with Interfaces" (article in CUJ vol 22 no 9) Victor Bazarov answers 17 July 22nd, 2005 06:37 PM
C++ with interfaces christopher diggins answers 0 July 22nd, 2005 09:30 AM