1. with and without warning questions ???
- Posted by Bernie Ryan <xotron at bluefrog.com> Feb 23, 2006
- 429 views
- Last edited Feb 24, 2006
If I place without warning at the top of a program no warning message appear when the program. If I place without warning at the top of a program and AFTER I have a list of bunch of local constants; After the constants are defined I place a with warning. Then when I end my program I get a message list of unused local constants. In other words without/with warning will not hide the constants. That is not the way that with/without should work. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
2. Re: with and without warning questions ???
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 24, 2006
- 430 views
Bernie Ryan wrote: > If I place without warning at the top of a program > no warning message appear when the program. > > If I place without warning at the top of a program > and AFTER I have a list of bunch of local constants; > > After the constants are defined I place a > with warning. > > Then when I end my program I get a > message list of unused local constants. > > In other words without/with warning will not > hide the constants. > > That is not the way that with/without should work. Maybe try putting "without warning" at the end of the file that has the constants. Euphoria doesn't issue any warnings against those constants until it is certain that they will never be used. For local symbols, that happens at the end of the file, and the internal flag for "warnings on/off" is used at that moment to decide whether to issue warning messages. The "without warning" status should then revert back to what it was in the main program before that file was included. Included files do not affect the warning status of the files that include them. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: with and without warning questions ???
- Posted by Jason Gade <jaygade at yahoo.com> Feb 24, 2006
- 406 views
Robert Craig wrote: > > Bernie Ryan wrote: > > If I place without warning at the top of a program > > no warning message appear when the program. > > > > If I place without warning at the top of a program > > and AFTER I have a list of bunch of local constants; > > > > After the constants are defined I place a > > with warning. > > > > Then when I end my program I get a > > message list of unused local constants. > > > > In other words without/with warning will not > > hide the constants. > > > > That is not the way that with/without should work. > > Maybe try putting "without warning" at the end > of the file that has the constants. Euphoria doesn't > issue any warnings against those constants until > it is certain that they will never be used. For local symbols, > that happens at the end of the file, and the internal > flag for "warnings on/off" is used at that moment > to decide whether to issue warning messages. > > The "without warning" status should then revert back to what > it was in the main program before that file was included. > Included files do not affect the warning status of the files > that include them. > > Regards, > Rob Craig > Rapid Deployment Software > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> So, is without warning executed at compile time (traslation to il) or at execution time? At what point are the warnings issued? -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.
4. Re: with and without warning questions ???
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 24, 2006
- 445 views
Jason Gade wrote: > So, is without warning executed at compile time (traslation to il) or at > execution > time? At what point are the warnings issued? Warning messages are created at compile-time only, but they do not appear on the screen until the interpreter (or translator or binder) has finished compiling/executing your program. If "without warning" is in effect at the time that a warning situation is detected, the warning will be suppressed. In Bernie's case, the fact that a symbol is never used cannot be detected when the symbol is declared, but only at the end of that symbol's scope. So it might not be obvious how you would suppress that specific warning. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com