How about 'pure' for constants?

Janice Caron caron800 at googlemail.com
Tue Dec 11 11:02:27 PST 2007


On 12/11/07, Jarrett Billingsley <kb3ctd2 at yahoo.com> wrote:
> Where did you get this idea?

I don't know. Glad to hear I'm wrong!

Anyway, it turns out the rule is: "the function may not be a
non-static member, i.e. it may not have a this pointer", so maybe
that's what confused me. That does look like it rules out opAdd et al
though.



More information about the Digitalmars-d mailing list