[article] Language Design Deal Breakers
deadalnix
deadalnix at gmail.com
Tue May 28 12:24:46 PDT 2013
On Tuesday, 28 May 2013 at 19:18:00 UTC, Simen Kjaeraas wrote:
> So you're saying I should do this to get a guaranteed prime
> number:
>
> struct Prime {
> private int payload;
> private void* dummy; // Non-nullable
>
> this(int value) {
> assert(isPrime(value));
> dummy = &something;
> dummy = value;
> }
> }
>
> Seriously? I'm not willing to believe you mean that, but if you
> really
> think non-nullable pointers is the same as @disable this(), I'm
> forced to.
No you are distording what I say. I said, and repeat it for the
nth time, that the job compilerwise is the exact same.
The code sample you present me is completely stupid. It simply
show that you are confused between compiler implementation and
language design.
More information about the Digitalmars-d
mailing list