[Issue 3882] Unused result of pure functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 18 06:53:42 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=3882
--- Comment #28 from bearophile_hugs at eml.cc 2014-03-18 06:53:41 PDT ---
(In reply to comment #27)
> If you're interested I could try looking into adding support in DMD for
> emitting such warnings.
This is an entirely new topic, so it must be discussed in a different Bugzilla
entry.
I am interested in such warning, but by design D doesn't like warnings a lot,
so if you create such warning, be prepared to see your pull request rejected
(but it could be a good try anyway).
> If so could someone guide to a place in the DMD sources
> where this check should be added?
Unfortunately you have to ask this to people that know the DMD compiler more
than me.
> > A better fix is to use the cast(void) everywhere.
>
> Ok, I'll change this today and then do a new pull request for Phobos.
Good.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list