1. without warning in .e files

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

new topic     » topic index » view message » categorize

2. Re: without warning in .e files

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: without warning in .e files

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu