On 04/28/2013 05:22 PM, WhatMeWorry wrote:
> Does a fixed-length, static array behave with value semantics
Yes, a static array has value semantics. When assigned, a variable of a
static array type will get its own elements, separate from the right
hand side's elements.
int[2] a;
int[
On Monday, 29 April 2013 at 00:22:23 UTC, WhatMeWorry wrote:
I think I understand (and admire) D's use of value semantics
for structs and reference semantics for classes. I believe
classes exist for the entirety of a program's life whereas
structs exist for the lifetime of their scope.
struct
I think I understand (and admire) D's use of value semantics for
structs and reference semantics for classes. I believe classes
exist for the entirety of a program's life whereas structs exist
for the lifetime of their scope.
So I assume it is illegal for a struct to contain a class? And
(hol