|
It was much worse than a problem - it was a complication. If you've ever implemented COM in C++ or non-trivial owner-draw for MFC you have to be very aware of the complexities of multiple inheritance.
I've done a lot of programming with C# over the last ten years. There have only been a couple of times where something would have been more concise using multiple inheritance, rather than single inheritance and multiple interfaces.
Software Zen: delete this;
|
|
|
|
|
In MFC, you could only multiple inherit if only one of the classes being inherited was not derived from CObject . The reason it can't be done in .Net is that ALL objects are inherited from Object , and there's no way to avoid it. They could easily fix it with an attribute, but no, they'd rather adhere to their arbitrary restrictions.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Yay, a new abstraction layer. Just what I needed in my day; not like I don't find myself editing out all the ones I inadvertently add already during the initial overthink. One day I should get YAGNI tattooed on the back of my hand :/
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
|
|
Honda, Kawasaki, Suzuki, Sony, Fujitsu, Toyota.
Yes, it seems I too can speak Japanese.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Michael Martin wrote: Yes, it seems I too can speak Japanese. But you obviously can't speak Chinese
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: But you obviously can't speak Chinese
Huawei and ZTE.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
You're turning Japanese, I think you're turning Japanese, I really think so.
|
|
|
|
|
A fellow survivor from MTV's glory days...
Software Zen: delete this;
|
|
|
|
|
Domo arigato Mr. Roboto
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
|
And it's back. Or maybe Chrome was acting up.
|
|
|
|
|
Do you suffer from unsightly chest hair? Should've gone to Pecshavers.
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hair today...gone tomorrow.
|
|
|
|
|
Oi Griff! Beshave yerself mate!
... such stuff as dreams are made on
|
|
|
|
|
My Grandfather was 6'3" and 250lbs. He used to complain constantly about his unsightly chest hairs.
He was...
A big old chest hair whiner
(Apologies to Steve Miller and the whole band)
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Freedom doesn't mean the absence of things you don't like.
Dave
|
|
|
|
|
Gives wax on, wax off a whole new meaning!
Everyone has a photographic memory; some just don't have film. Steven Wright
|
|
|
|
|
Based upon Occam's Razor, I deduce you've clearly depleted you pun supply.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
W∴ Balboos wrote: Based upon Occam's Razor, I deduce you've clearly depilated[^] your pun supply FTFY.
Software Zen: delete this;
|
|
|
|
|
I haven't had any complaints. Have you?
|
|
|
|
|
It seems to me that there could be a type (implemented in your favorite language has has classes, including operator overloading) that would store a number as a rational number. This type would be a list of links that would have prime factors and their exponents (e.g., in C++, the prime factor would be type "unsigned long", with the exponent being "long"). This would work because any decimal (or hexadecimal) input would be a rational number itself, and then any operations would be exact, so that, e.g., the result of (213.56 - 45.41) would be 168.15 and not 168.14999999, etc.
|
|
|
|
|
And storage of Pi would be?
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Again he beats me to it!
... such stuff as dreams are made on
|
|
|
|
|
My stomach. I like pie.
This space for rent
|
|
|
|