Segment violation (was Re: Why I could not cast string to int?)

bearophile bearophileHUGS at lycos.com
Fri Feb 3 04:55:20 PST 2012


Artur Skawina:

> Would marking the ctor as "scope" (similarly to "const" or "pure") work for your
> case? (it is reasonable to expect that the compiler checks this by itself; it's
> per-type, so not nearly as expensive as analyzing the flow)

Maybe this is a topic worth discussing in the main D newsgroup (and maybe later worth an enhancement request).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list