struct vs. class, int vs. char.

Steven Schveighoffer schveiguy at yahoo.com
Wed Apr 29 05:48:32 PDT 2009


On Wed, 29 Apr 2009 05:44:07 -0400, Don <nospam at nospam.com> wrote:


> Except in the case where the array is empty.
> (Likewise, it'd be nice if char [] s=""; were legal in D2. Since a  
> mutable "" string has nothing that can be changed anyway, "" can be  
> treated in the same way that 'null' is).

Why is this more desirable than just:

char[] s;
int[] i;

Which works now.

-Steve



More information about the Digitalmars-d mailing list