|
-
March 30th, 2011, 08:19 PM
#21
Re: Event handlers vs. base class method overrides
 Originally Posted by TheGreatCthulhu
But, as a side note, check out what Gamma et al. said at the start of their now famous book on Design Patterns:
[...]
Really a great quote (containing another quote).
A second thought on the steering wheel analogy: This is an obvious example of legacy design. When originally introduced, the steering wheel interface was highly implementation-dependent due to limitations of those day's technology. In the meantime implementation technology has considerably evolved, even frequently resulting in situations where the steering wheel interface is placed on top of an abstraction layer called drive-by-wire. That legacy interface, however, is still used in practically all implementations, primarily simply due to long-acquired habits of billions of users. There are alternative interfaces, e.g. joysticks, available that might better fit today's implementations but yet they're not accepted by the public.
Everything's connected... (the X-Files theme playing in the background)

Should be... 3rd ed., too: § 6.2.6.1 (Arrays), just under the example, the second sentence.
Found it, thanks. It's on page 138. However, there's a translation glitch in my copy. Translated back, it reads:
 Originally Posted by Stroustrup, TC++PL 3rd ed., German translation
To deallocate space allocated by new, new and new [] must be able to determine the size of the object allocated. This implies that an object allocated using the standard implementation of new will occupy slightly more space than a static object. Typically, one word is used to hold the object's size.
Interestingly, just in the next paragraph he also mentions std::vector. However, I don't think he does that to contrast his "subtle" mention of implementaion details in the quoted passage and the conclusions the OP of the thread over there in the Non-VC++ section pulled from that.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|