[Issue 1254] Using a parameter initialized to void in a compile-time evaluated function doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 2 11:02:19 PDT 2007


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





------- Comment #2 from deewiant at gmail.com  2007-06-02 13:02 -------
Well, there's no particular use for it in CTFE, but the thing is that a
function may be used both with and without CTFE. In the latter case, not
initializing a variable is an optimization (though in this case of a single
integer it hardly matters), and may be useful. In the CTFE case, it might as
well be initialized anyway, if that's easier: it's a bug to rely on the
contents of uninitialized variables anyway.


-- 



More information about the Digitalmars-d-bugs mailing list