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



--- Comment #4 from Don <clugd...@yahoo.com.au> 2010-11-29 14:25:47 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> 
> > Maybe you are right, there is no much better error message to be invented 
> > here.
> 
> Hm... I'd expect a message like:
> 
> Error: pure function 'foo.bar' cannot call impure function 'putchar'

At present, you get that error message if you explicitly mark bar as pure.
But, the existing error message tells you why bar is pure. It's because foo is
pure. This is helpful if there are several levels of nesting: it tells you the
level which was pure.

> 
> But this doesn't seem to be a very critical problem, the line number is
> correct, so you can see where the problem is.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to