Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
Extremely dubious. I am sure you can come up with examples (both before and after) yourself.
To make it even close you'd need to add a qualifier like "... that is mostly compatible with C". Even then it is not a closed case.
LLVM 3.0 released
Posted Dec 9, 2011 16:48 UTC (Fri) by daglwn (subscriber, #65432)
None that I know of. Not even without the "compatible with C" qualifier. Perhaps there is an esoteric project somewhere that does this but certainly no other mainstream language. C++ doesn't have every language feature possible but it does have a unique combination of them.
Posted Dec 10, 2011 3:33 UTC (Sat) by Cyberax (✭ supporter ✭, #52523)
Alas, no real manual memory management.
Posted Dec 12, 2011 4:20 UTC (Mon) by daglwn (subscriber, #65432)
Posted Dec 10, 2011 9:33 UTC (Sat) by paulj (subscriber, #341)
Posted Dec 12, 2011 4:18 UTC (Mon) by daglwn (subscriber, #65432)
Vala is cool. I definitely see the value in it. But it isn't a replacement for C++.
Posted Dec 12, 2011 7:17 UTC (Mon) by paulj (subscriber, #341)
Vala has generics. I'm not sure what aspect of C++ templates you miss, but I sure don't miss the multiple-pages or more of incomprehensible error messages that are inherent to even minor mistakes with C++ templates. ;)
Vala is statically typed, not sure why you'd think otherwise (it allows type inference of LHS in assignments with "var x = y;" - a handy convenience, and still statically typed).
Posted Dec 12, 2011 10:11 UTC (Mon) by mpr22 (subscriber, #60784)
As that page describes it, Vala allows you to inherit at most one class and any number of interfaces (and the page explicitly says that it's a restricted form of multiple inheritance). C++ allows you to inherit multiple concrete classes. (It happens to be the case that I've never encountered a case where I thought I had a reason to use this capability, but I am not every C++ programmer.)
Posted Dec 12, 2011 10:38 UTC (Mon) by paulj (subscriber, #341)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds