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
https://issues.dlang.org/show_bug.cgi?id=18100
Iain Buclaw changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=18100
--- Comment #5 from changlon ---
Thanks for explain.
I just use cast and it work.
--
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
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
https://issues.dlang.org/show_bug.cgi?id=18100
Steven Schveighoffer changed:
What|Removed |Added
CC|
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).
--