[Issue 18100] crt_constructor not allow to init immutable

2017-12-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 --- Comment #7 from Steven Schveighoffer --- (In reply to Iain Buclaw from comment #6) > This has got nothing to do with "betterC", whatever that means. Actually, this is all about betterC. betterC means no druntime, which

[Issue 18100] crt_constructor not allow to init immutable

2017-12-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18100] crt_constructor not allow to init immutable

2017-12-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 --- Comment #5 from changlon --- Thanks for explain. I just use cast and it work. --

[Issue 18100] crt_constructor not allow to init immutable

2017-12-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 --- Comment #4 from Steven Schveighoffer --- (In reply to changlon from comment #3) > Since better D is target for high performance low level code, we should > allow set immutable on crt_constructor, or drop crt_constructor and

[Issue 18100] crt_constructor not allow to init immutable

2017-12-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 --- Comment #3 from changlon --- Hi, Steven Schveighoffer To allow set immutable will open the door for pure function and tail recursion optimization , and it is not safe to cast immutable to mutable and set value. This is why

[Issue 18100] crt_constructor not allow to init immutable

2017-12-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 Steven Schveighoffer changed: What|Removed |Added CC|

[Issue 18100] crt_constructor not allow to init immutable

2017-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18100 --- Comment #1 from changlon --- crt_constructor can be call from anywhere. If so it is not able to init immutable. But if it it not able to init immutable, it will be much less useful from BetterC (compare to static this). --