1. without warning
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Apr 27, 2000
- 344 views
If I have a ew include and I have constants in it. When I use the include file and the program ends it dumps out a list of the constants not used. WITHOUT WARNING does not turn this off. How do I stop this dump of not used constants. PS:I do not want to remove them.
2. Re: without warning
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Apr 27, 2000
- 344 views
Hello Bernie, >If I have a ew include and I have constants in it. > > When I use the include file and the program ends it > > dumps out a list of the constants not used. > > WITHOUT WARNING does not turn this off. > > How do I stop this dump of not used constants. > > PS:I do not want to remove them. I think you have to put "without warning" BEFORE the include statement: without warning include winc.ew with warning If this doesn't fix your problem then I don't know what's wrong. However, you COULD make a junk variable that uses all of these constants just to make the messages go away but this doesn't really address the problem. Example: include winc.ew object junk junk = winc_const1 junk = winc_const2 junk = winc_const3 junk = winc_const4 later, Lewis Townsend ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
3. Re: without warning
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Apr 27, 2000
- 328 views
The constants are local constants and are used in functions It appears that if you define a function and you use a local constant in it then Euphoria doesn't consider the constant to be used. The only way to shut off the dump is to bracket the local constants and functions that use the constants with the without/with operator. Why doesn't Euphoria consider a local constant as used when it is used in a function ???
4. Re: without warning
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Apr 27, 2000
- 346 views
Hello Bernie, >The constants are local constants and are used in functions > It appears that if you define a function and you use a local constant > in it then Euphoria doesn't consider the constant to be used. > The only way to shut off the dump is to bracket the local constants > and functions that use the constants with the without/with operator. > > Why doesn't Euphoria consider a local constant as used when it is > used in a function ??? I think it does if you use the function. All that matters is whether or not the statement that uses it actually gets called. It doesn't matter how many times in the code the constant apears, if those statements aren't actually executed, it isn't actually used. A good analogy (I think) would be that if my mom packed my lunch for me (she doesn't) and put a can of V8 juice in it instead of Mt Dew. I wouldn't drink it just because it's in my lunch box (I hate V8 juice). later, Lewis Townsend PS: I'll try to stop responding to everything now, I know I've been writting a lot today. I have a bit of time on my hands. :) ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
5. Re: without warning
- Posted by Robert Craig <rds at ATTCANADA.NET> Apr 27, 2000
- 346 views
Bernie Ryan writes: > It appears that if you define a function and you use a > local constant in it then Euphoria doesn't consider the > constant to be used. constant AAA = 999, BBB = 0 function foo() return AAA+BBB end function I don't get any warning from the above program. AAA and BBB are both local constants that are used in a function. If I include the above code in another file, I still don't get any warning. Maybe you should post a small example of what you are doing. Maybe you have defined the same symbol in more than one file. You can always say "without warning" at the beginning of your main file, and warnings will be turned completely off, unless you turn them back on again somewhere. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
6. Re: without warning
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Apr 27, 2000
- 341 views
Rob I can't come up with a simple example yet. I'll look into it further and get back to you when I discover what is happening. Thanks Bernie
7. Re: without warning
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Apr 27, 2000
- 346 views
Rob: The problem was due to me having more than 1 version of my code. I was using the wrong version. Somebody better write a version control program or I'am going to have to quit writing such big programs. Thanks again Bernie