D - Code generation problem
- Matthew Wilson (13/13) Mar 19 2003 Walter
- Walter (3/14) Mar 22 2003 It's not a known issue. Let me know what you find.
Walter
It's a bit hard to give you a simple example, but I'm getting bad code
generated in nested for loops. Basically if I assign (not declare!)
variables within the inner for-loop they don't get assigned, e.g.
for(i = 0; i < ... )
{
for(x = 0; x < ... ) // x does not get set to 0
{
}
}
Naturally I'll try and distill a simple example, but I wanted to flag it,
even if it's just to learn that this is a known issue.
Matthew
Mar 19 2003
"Matthew Wilson" <dmd synesis.com.au> wrote in message
news:b59p3k$2io5$1 digitaldaemon.com...
It's a bit hard to give you a simple example, but I'm getting bad code
generated in nested for loops. Basically if I assign (not declare!)
variables within the inner for-loop they don't get assigned, e.g.
for(i = 0; i < ... )
{
for(x = 0; x < ... ) // x does not get set to 0
{
}
}
Naturally I'll try and distill a simple example, but I wanted to flag it,
even if it's just to learn that this is a known issue.
It's not a known issue. Let me know what you find.
Mar 22 2003








"Walter" <walter digitalmars.com>