Re: with and without warning questions ???
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 24, 2006
- 428 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