A few simple syntactic proposals
Koroskin Denis
2korden at gmail.com
Fri Apr 18 06:57:48 PDT 2008
On Thu, 17 Apr 2008 18:33:35 +0400, Sean Kelly <sean at invisibleduck.org>
wrote:
> [snip]
> I'm not sure it's sufficiently simple, but a while back I suggested
> making
> constructors inherited by default. Here's the link:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/Inheriting_constructors_54088.html
>
> For simple stuff, I'd like to see opEquals return a bool if it doesn't
> already
> in D 2.0. Also, I'd like closures to be given some attention.
> Currently, they
> seem to allocate too often for non-escaping closures. This needs to be
> looked at and if syntax must be added to override the automatic
> allocation
> then it should be done sooner than later.
>
>
> Sean
Hey, good idea! And the feature gets its way to C++0x, too, but not
implicitly:
(example from wikipedia)
class BaseClass
{
public:
BaseClass(int iValue);
};
class DerivedClass : public BaseClass
{
public:
using default BaseClass;
// same as
// DerivedClass(int iValue) : BaseClass(iValue) {}
};
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list