[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2011-06-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #4 from yebblies yebbl...@gmail.com 2011-06-12 23:19:46 PDT ---
*** This issue has been marked as a duplicate of issue 3630 ***

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


[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2011-06-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||s...@q1cc.net


--- Comment #3 from yebblies yebbl...@gmail.com 2011-06-12 23:18:47 PDT ---
*** Issue 3855 has been marked as a duplicate of this issue. ***

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


[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2011-06-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746



--- Comment #7 from bearophile_h...@eml.cc 2011-06-13 03:22:41 PDT ---
Issue 3922 contains some interesting comments.

It seems this enhancement request for a better error message has many dupes!

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


[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2011-06-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #6 from bearophile_h...@eml.cc 2011-06-13 03:21:08 PDT ---
*** Issue 3922 has been marked as a duplicate of this issue. ***

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


[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2010-01-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746



--- Comment #2 from Witold Baryluk bary...@smp.if.uj.edu.pl 2010-01-28 
12:12:00 PST ---
(In reply to comment #1)
 Well, obviously return *is* allowed from void functions (void f() { return; 
 }).
 But 'error: return statement with a value in a void function' would be a
 preferable message than talking about values having no effect in expressions.

Yes you are right. Error messages should be as precise as possible.

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


[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2010-01-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746


Witold Baryluk bary...@smp.if.uj.edu.pl changed:

   What|Removed |Added

   Severity|normal  |minor


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


[Issue 3746] Misleding error message OP has no effect in expression XXX), in void function

2010-01-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3746


Bernard Helyer blood.of.l...@gmail.com changed:

   What|Removed |Added

 CC||blood.of.l...@gmail.com


--- Comment #1 from Bernard Helyer blood.of.l...@gmail.com 2010-01-27 
19:59:24 PST ---
Well, obviously return *is* allowed from void functions (void f() { return; }).
But 'error: return statement with a value in a void function' would be a
preferable message than talking about values having no effect in expressions.

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