1. without warning in .e files
- Posted by Terry Constant <constant at FLASH.NET> May 28, 1998
- 745 views
Question? I discovered that Euphoria was no longer giving me warning messages such as a variable being declared but not used. It had been working previously. As I finally discovered, I included dialogs.e which has a "without warning" statement in it. When I removed that statement, I began getting warnings about my program again. Of course, I also got warnings about two variables in dialog.e. I checked, and msgbox.e and safe.e, both distribution files, also have "without warning" statements. So, I assume I would get the same behavior affecting my current program if I included either of these files. Now the question. Is it proper in Euphoria for a "without warning" statement in an include file to affect my current source file on which I am working? -- Terry Constant constant at flash.net
2. Re: without warning in .e files
- Posted by Robert Craig <rds at EMAIL.MSN.COM> Jun 01, 1998
- 680 views
Terry Constant writes: > Is it proper in Euphoria for a "without warning" statement > in an include file to affect my current source file on which > I am working? That's the way it works. I agree that it's probably not what you want in most cases. I've been thinking of maybe automatically turning off any "without warning" at the end of each file. Or maybe Euphoria should restore all previous with/without settings when it gets to the end of an include file. Regards, Rob Craig Rapid Deployment Software
3. Re: without warning in .e files
- Posted by Terry Constant <constant at FLASH.NET> Jun 01, 1998
- 714 views
Robert Craig wrote: > > Terry Constant writes: > > Is it proper in Euphoria for a "without warning" statement > > in an include file to affect my current source file on which > > I am working? > > That's the way it works. I agree that it's probably not > what you want in most cases. I've been thinking of maybe > automatically turning off any "without warning" at the end > of each file. Or maybe Euphoria should > restore all previous with/without settings when it gets to > the end of an include file. > > Regards, > Rob Craig > Rapid Deployment Software Rob, Thanks for the info. Now that I understand the proper behavior, I can code accordingly. But, if you are going to fiddle with it, I think either option you mentioned would be a worthwhile enhancement. -- Terry Constant constant at flash.net