[Issue 2804] Impure nested functions should be legal inside pure functions[patch included]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 6 04:30:35 PDT 2009


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





------- Comment #1 from clugdbug at yahoo.com.au  2009-04-06 06:30 -------
Created an attachment (id=315)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=315&action=view)
patch for 2804

This allows pure functions to call their own nested functions (even if such
functions aren't marked as pure), but prevents nested functions inside pure
functions from 
(1) calling impure functions and
(2) accessing static variables.


-- 



More information about the Digitalmars-d-bugs mailing list