February 14, 2005 Re: OT: Airplane A = new Airplane() | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | >>How about just:
>>
>>Airplane foo(10); equivalent to Airplane foo = new Airplane(10);
>>Airplane foo(); equivalent to Airplane foo = new Airplane;
>>Airplane foo; same as now
>>
>>This eliminates many cases of 'new' without breaking a single line of existing
>>code. I'm surprised nobody have suggested this yet. (Or if they have I have just
>>missed it :-)
>
>
> I like it :)
>
> -- Matthias Becker
This looks excellent!!
|
Copyright © 1999-2021 by the D Language Foundation