Re: Bug in 4.0.5? EUI, no warning for unused procedures/functions

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

Sometimes I wish I could just leave things alone...

DerekParnell said...

It's not a bug because interpreted Euphoria was not designed to give warnings about un-referenced routines.

To me that reads the same as:

It's not a bug because Euphoria was not designed to be helpful. 

DerekParnell said...

While developing a program or module, it is very common to have routines that are not used yet. That is why I would suggest that the -STRICT option be used to trigger the warnings.

And if it did issue warnings that would anger or annoy you how, exactly?

At one point in 4.0 development, I think we had warnings for unused routines turned on. Nearly every program run ended with tons of such warnings. They were mostly library routines that you never used in your current program. That's the opposite of helpful. It's difficult to get the warning level tweaked correctly, and use of routine_id makes it even harder, of course.

I think the routine_id detection is quite a bit better now, so binding and getting the list might be useful. I'll also add that the coverage capabilities allow you to include or exclude files from coverage.

I recall unused parameters causing similar problems. Especially in a GUI app where your event handlers have a standard set of parameters, all of which rarely need to be used.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu