Implementing Pure Functions

Kagamin spam at here.lot
Thu Jun 16 05:27:59 PDT 2011


Jimmy Cao Wrote:

> > pure int square(int x)
> > {
> >    auto fp = cast(fp_t)&square_debug;
> >    return (*fp)(x); // dereference???
> > }
> >
> 
> Yes, that's correct.

You mean, implementation-defined?


More information about the Digitalmars-d mailing list