February 11, 2004 Re: struct constructors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris Paulson-Ellis | "Chris Paulson-Ellis" <chris@edesix.com> wrote in message news:c07o3k$1n67$1@digitaldaemon.com... > What would be the D way? I can't see any way to avoid the (mild) inefficiency of executing the default struct member initialisers & the copying of a temporary struct. The optimizer's job is to remove the redundant assignments. |
Copyright © 1999-2021 by the D Language Foundation