which version of D for beginers?

Christopher Wright dhasenan at gmail.com
Sun Nov 23 19:12:19 PST 2008


Kagamin wrote:
> Hoenir Wrote:
> 
>> Lutger schrieb:
>>> There are a few changes that need to be done when porting code from D1 to
>>> D2. It may be helpful to find out what those are at an early stage and
>>> program your applications with these in mind. That will help when D2 is
>>> more stabilized and you want to switch in the future.
>>>
>> While we're on it, is there such a list anywhere?
> 
> Major D2 feature is constness, others are minor. So it's a good practice to mark in parameters with in parameter storage class, which means const in D2. And string in D2 is invariant.

Const is the largest feature that makes porting from d1 to d2 difficult. 
However, if you're concerned with reflection, for instance, d2 has major 
advances in that area.

Though, speaking of const, has anyone come up with a tool to add 'in' to 
all function parameters?


More information about the Digitalmars-d-learn mailing list