------- Comment #1 from  2009-04-22 03:30 -------
Created an attachment (id=334)
 --> (
Patch for DMD2.029.

This patch also prevents pure functions from calling impure delegates.

It (correctly) does not prevent them from assigning to impure function
pointers/delegates -- it just mustn't call them. I've tested it with
delegates/functions passed as parameters, as well as defined as variables; I've
also tested it with template functions, and with structs defining opCall, and
made sure it doesn't cause problems with variables defined in module scope.


Reply via email to