1. RE: Euphoria bug found (warning system)

Chris Bensler wrote:
> I wouldn't say it's a bug. The constant ISN'T used. Only assigned.
> 
> Rather than assigning it to a garbage variable, why not just assign the 
> Control_ID to a variable?
> 
> atom MenuItem_Sep001
> MenuItem_Sep001=create(MenuItem,"-",FPUMenu2,-1,0,1,0,0)
> 
> By doing it this way, your code can be more flexible too.
> You can reassign a different control to MenuItem_Sep001, IE. for dynamic 
> 
> menus.
> 
> Or... just use without warning, that's what it's for.
> 
> Chris



Hello again,

Well it is a bug, or its not a bug, depending on
how you look at it.  Eu 2.0 doesnt emit a warning.

It's known as a "dummy constant".
Dummy variables are sometimes used to initialize code also,
but im not going to worry about it, ill just insert
"without warning" at the start of the file like my
previous post had mentioned.

I think it would be harder for Eu to track down
which constants were being used as dummy constants
though, so its better left alone.

Oh and the 'garbage' variable was used just to illustrate
the fact that that using the constant in another line
prevented the warning, as i dont actually include that
in any program smile

Bye for now,
--Al

new topic     » topic index » view message » categorize

2. RE: Euphoria bug found (warning system)

Igor Kachan wrote:
> Then, is FIXED bug a bug? Yes it is. Isn't ?
> 
> smile smile
> 
> Regards,
> Igor Kachan
> kinz at peterlink.ru
>

 Hello,

If a bug crawls in the woods, and nobody's around to squash it,
is it really a bug?



Well its only a fixed bug if you had previously regarded it as a bug
in the first place.

If it hadnt been regarded as a bug in the first place, and you 
fixed it, it might be possible that now it gets regarded as a bug.

If you hadnt regarded it as a bug, and you didnt fix it, its still
not a bug.

If you regarded it as a bug, and you fixed it, and its now not
regarded as a bug, then it truely was a bug to begin with.



If it has lots of tiny legs, id bet its a either a bug or a 
relative smile



On the more serious side, is there a way to avoid filling the
screen with warnings during the debug phase?
I guess the only way is to avoid using the dummy vars.


Take care now,
--Al

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu