Pure higher order functions

KennyTM~ kennytm at gmail.com
Thu Jul 7 13:18:38 PDT 2011


On Jul 8, 11 00:43, KennyTM~ wrote:
> No, I think it's a bug in pure-inference.
>
> pure int h() {
>      return 1;
> }
> int f(alias g)() {
>      return g();
> }
> pure int i() {
>      return f!h();  // pure function 'i' cannot call impure function 'f'
> }

http://d.puremagic.com/issues/show_bug.cgi?id=6265


More information about the Digitalmars-d mailing list