Re: with and without warning questions ???

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu