Re: Attribute introspection

2009-04-22 Thread Don
bearophile wrote: Are there ways in D2 to tell if a function has the 'pure' attribute? (To create a parallel_map() function we will want to be sure it takes a pure mapping function as argument). Bye, bearophile It's easy enough if it's a function pointer or delegate: int foo(T, U...)(T functi

Attribute introspection

2009-04-22 Thread bearophile
Are there ways in D2 to tell if a function has the 'pure' attribute? (To create a parallel_map() function we will want to be sure it takes a pure mapping function as argument). Bye, bearophile