- Available C++ Libraries FAQ - 1 Update
- Concrete classes considered harmful - 2 Updates
- template variables - 1 Update
Nikki Locke <nikki@trumphurst.com>: Jul 14 10:21PM Available C++ Libraries FAQ URL: http://www.trumphurst.com/cpplibs/ This is a searchable list of libraries and utilities (both free and commercial) available to C++ programmers. If you know of a library which is not in the list, why not fill in the form at http://www.trumphurst.com/cpplibs/cppsub.php Maintainer: Nikki Locke - if you wish to contact me, please use the form on the website. |
legalize+jeeves@mail.xmission.com (Richard): Jul 14 04:52AM [Please do not mail me a copy of your followup] Ian Collins <ian-news@hotmail.com> spake the secret code >> link-time mocking. However, I can see it's usefulness. >It's pretty much the only option when you are working with system (or >object only third party) libraries. As they say: any problem in computer science can be solved with another level of indirection :-). I've done TDD with system-level APIs provided as free functions by creating a domain-specific wrapper around them. I've done it with both static polymorphism and dynamic polymorphism. Link-time mocking is another alternative, of course. -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Computer Graphics Museum <http://computergraphicsmuseum.org> The Terminals Wiki <http://terminals.classiccmp.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com> |
Ian Collins <ian-news@hotmail.com>: Jul 14 07:31PM +1200 Richard wrote: >> object only third party) libraries. > As they say: any problem in computer science can be solved with > another level of indirection :-). One of my favourite phrases :) > I've done TDD with system-level > APIs provided as free functions by creating a domain-specific wrapper > around them. That is one solution I have used in the past, however mocking them required a lot less work - especially if the mocking framework generates all of the code for you. My framework takes an XML definition of a function signature (which can its self be code generated from a header) and produces a class object with a rich set of static member functions for setting return values and setting up parameter checks. -- Ian Collins |
ram@zedat.fu-berlin.de (Stefan Ram): Jul 14 12:15AM >The rules say that to define an object of some type you need to provide >the type. As far as I am aware, the standard does have the notion »to define an object«. A sole exception I am aware of is »implementation-defined object« in the sentence »the thrown exception is replaced by an implementation-defined object of type std::bad_exception«. What can be defined, according to 3.1, are »names«. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment