Marking a delegate as pure, nothrow, etc.

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sun Apr 13 11:02:07 PDT 2014


On 13/04/14 19:58, Joseph Rushton Wakeling wrote:
> Is it possible to mark a delegate as pure, @safe, nothrow, etc.?  And if so, how?

... just answered my own question with a bit more experimentation.  The 
declarations need to come _after_ the delegate:

     void foo(int delegate(int) @safe nothrow pure dg)
     {
         ...
     }



More information about the Digitalmars-d-learn mailing list