[Issue 5056] Warning against virtual method call from constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 17 16:59:29 PDT 2010


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



--- Comment #9 from bearophile_hugs at eml.cc 2010-10-17 16:58:48 PDT ---
Thank you for all the comments.

(In reply to comment #3)
> So yes, I think it would be a good thing to suggest as a "best practice" 
> (certainly not a compiler error or warning), but there are ways to make it
> safe.

It may be a third class of compiler messages, beside the errors and the
warnings. The compiler "tips" may warn against possible troubles like this one
(also see bug 4924 and others), give suggestions for improvements or, like the
CommonLisp compilers, warn against not efficient code. An example of those
comments from a CLisp compiler:

http://shootout.alioth.debian.org/u32/program.php?test=mandelbrot&lang=sbcl&id=1

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


More information about the Digitalmars-d-bugs mailing list