[Issue 4875] Allow struct initialization with constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 16 15:36:42 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4875



--- Comment #4 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-09-16 15:36:08 PDT ---
(In reply to comment #1)
> You may write this:
> 
> class File {
>     HANDLE Handle = HANDLE(5);
> }

Hmm... giving it another thought, forcing explicit constructor syntax can be
ok: it makes things explicit and with proper OO wrapping doesn't require big
changes.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list