April 29, 2009 Re: struct vs. class, int vs. char. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Don | On Wed, 29 Apr 2009 05:44:07 -0400, Don <nospam@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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply