[Issue 927] writefln() is duplicating values for parameters supplied
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Sun Feb 4 02:28:05 PST 2007
d-bugmail at puremagic.com wrote:
> ------- Comment #5 from rmann-d-lang at latencyzero.com 2007-02-03 21:41 -------
> I was reading somewhere that the compiler could put the stack frame on the heap
> in situations like that, so that it would actually work to reference local
> variables.
Perhaps, but until it does this should be an error. Or at least a
warning (I know, Walter doesn't like those).
Returning local arrays & delegates are probably two of the most common
bugs seen on d.D.learn.
More information about the Digitalmars-d-bugs
mailing list