Re: with and without warning questions ???

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

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu