[dmd-beta] dmd 2.064 beta take 2
d coder
dlang.coder at gmail.com
Wed May 15 23:16:40 PDT 2013
On Thu, May 16, 2013 at 11:33 AM, Lars Tandle Kyllingstad <
lars at kyllingen.net> wrote:
> Are you proposing that this be allowed:
>
> struct S
> {
> immutable int c = 123;
> this(int i) { c = i; }
> }
>
> and that the compiler should report an error on the following?
>
> struct S
> {
> immutable int c = 123;
> // No constructor
> }
>
As I understand, he is proposing that either the first code snippet be
allowed OR the second one should be an error.
Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20130516/63b63697/attachment.html>
More information about the dmd-beta
mailing list