Generic memory allocation in D
Walter Bright
newshound2 at digitalmars.com
Tue Mar 5 03:29:28 UTC 2024
On 3/4/2024 12:38 PM, Paul Backus wrote:
> For example, you have this:
>
> // true means success
> if (f.isPure())
> // it's pure
> else
> // it's impure
>
> ...but also this:
>
> // true means failure
> if (f.checkPurity(loc, sc))
> // it's impure
> else
> // it's pure
I know there are inconsistencies in the DMD code base. It shows the effects of
many people working on it over decades.
However, "isPure" asks a question. "checkPurity" does not, and so it isn't
implicit how the logic should go.
More information about the Digitalmars-d
mailing list