DMD 2.000 alpha release

Walter Bright newshound1 at digitalmars.com
Mon Jun 18 02:06:46 PDT 2007


Deewiant wrote:
> Should extern (C) functions with const parameters now include the const? I
> notice you've added "in" to the C functions in Phobos, is that more correct?

Yes.

> Should the main function now take some const form of the command line arguments?

Yes.

> Will structs get constructors, as a struct seems to have under "Final Storage
> Class"?

Yes.

> What's the difference between const and invariant member functions? The example
> under "Invariant Member Functions" behaves the same whether it's invariant or const.

const means that the member function cannot change the instance. 
Invariant means nobody can change the instance.



More information about the Digitalmars-d-announce mailing list