.init of field == type's initializer or field initializer?

Jonathan M Davis jmdavisProg at gmx.com
Thu May 19 23:10:13 PDT 2011


On 2011-05-19 22:51, Andrej Mitrovic wrote:
> It was in the docs like that actually.

Well, then it's an error in the docs. Foo.init should have its member 
variables initialized to what they were directly initialized to, but that 
shouldn't affect the default initializers of the types of the member 
variables.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list