 |
Eight
Registered: Mar 2009
Posts: 3359 |
07-13-12 04:35 AM
Quote from mcgene4xpro:
AFL is a powerful concise language indeed. But very few are depending on it for live trading. Only for backtesting and optimizing. It is one of the least priority on list. It would be another plus for me to be able to play with it one day. But to be realistic, i have to focus on one thing at a time.
They just have an interface for IB but it's very rich in features.
|
| |
|
Edit/Delete • Quote • Complain |

dom993
Registered: Jul 2008
Posts: 540 |
07-13-12 05:34 PM
Quote from amazingIndustry:
single inheritance in C#? Care to elaborate?
The fact that a class X can inherit (be derived) from a single base class B:
// C#
class X : B { ... }
contrary to C++ where a class X can inherit (be derived) from multiple base classes B1, B2, ... Bn
// C++ only
class X : B1, B2, ..., Bn { ... }
Of course, in C# a class can *implement* multiple interfaces, but that's the thing - it has to provide the implementation for each interface it supports, and this is a world apart from inheritance.
|
| |
|
Edit/Delete • Quote • Complain |

amazingIndustry
Registered: Aug 2009
Posts: 570 |
07-13-12 05:44 PM
that you call a serious limitation? Ever heard of interfaces?
Seriously I have never ever come across once that I felt only being able to inherit from one base class is a limitation. You can inherit, by the way from several base classes indirectly (your base class inherits from another base class).
What do you think of delegates in C#? Tell me how much simpler and more elegant can it get? I do not even want remember how clumsy it is to get it wired up in C++. Or tell me how many hours if not days it takes you to code up a high throughput, low latency data flow network that runs concurrently. I get it up and running for you in less than 2 hours plus 1 hour testing and debugging for a simple project. I challenge you to get the same in less than 1-2 days running in C++.
P.S.: Actually you can have "synthetic" inheritance with interfaces. Plus you can manage changes and expansions of functionality with interfaces much more beautifully than through base classes. With interfaces you get to implement a much more important OOP principle much more elegantly through interfaces than base classes: Abstraction. You make it sound like as if its bad that the implementation of the interface is not provided, but its actually what allows the abstraction part to really shine.
Quote from dom993:
The fact that a class X can inherit (be derived) from a single base class B:
// C#
class X : B { ... }
contrary to C++ where a class X can inherit (be derived) from multiple base classes B1, B2, ... Bn
// C++ only
class X : B1, B2, ..., Bn { ... }
Of course, in C# a class can *implement* multiple interfaces, but that's the thing - it has to provide the implementation for each interface it supports, and this is a world apart from inheritance.
|
| |
|
Edit/Delete • Quote • Complain |

dom993
Registered: Jul 2008
Posts: 540 |
07-13-12 06:53 PM
Sorry I didn't mean to start a pissing contest.
I just said C# main limitation vs C++ is the single inheritance, and there is no point going ballistic about it.
Re-read my prior posts, and tell me where I wrote C++ is better than C#.
|
| |
|
Edit/Delete • Quote • Complain |
amazingIndustry
Registered: Aug 2009
Posts: 570 |
07-14-12 11:51 AM
then what is your point exactly? I could name you over 100 features where C# shines vs C++. If I picked one of those 100 and that was all I mentioned what impression would you get? I miss your point here.
Quote from dom993:
Sorry I didn't mean to start a pissing contest.
I just said C# main limitation vs C++ is the single inheritance, and there is no point going ballistic about it.
Re-read my prior posts, and tell me where I wrote C++ is better than C#.
|
| |
|
Edit/Delete • Quote • Complain |

ForAPlus
Registered: Jul 2012
Posts: 24 |
07-16-12 07:48 PM
Not planning to join the flame war, but do want to point out that multiple inheritance was explicitly considered in c# and rejected because it potentially leads to the Diamond Problem (http://en.wikipedia.org/wiki/Diamond_problem)
Quote from dom993:
Sorry I didn't mean to start a pissing contest.
I just said C# main limitation vs C++ is the single inheritance, and there is no point going ballistic about it.
Re-read my prior posts, and tell me where I wrote C++ is better than C#.
|
| |
|
Edit/Delete • Quote • Complain |
| Receive
an email whenever a new post is added to this thread by subscribing
to it. |
|
|
|
|