1. Short Circuit message

Rob:
  Please remove the SHORT circuit error message from ver 2.3
  It is annoying to have to write a program and shut off
  warnings just for this stupid message. I want my programs to shut
  down clean and not have to insert with/without warning through
  out a program.
  If I write a program correctly, I should NEVER have to shut the
  warning message off !
Bernie

new topic     » topic index » view message » categorize

2. Re: Short Circuit message

Bernie Ryan writes:
>   Please remove the SHORT circuit error message from ver 2.3
>  It is annoying to have to write a program and shut off
>  warnings just for this stupid message. I want my programs to shut
>  down clean and not have to insert with/without warning through
> out a program.
> If I write a program correctly, I should NEVER have to shut the
>  warning message off !

Warnings are meant to flag things that, 
while correct, may deserve some attention.

You can turn off warnings for a whole program
by typing a single:
         without warning
at the top of the main file.

You can turn off warnings for a single include
file by typing 
         without warning
at the top of that one file.

You can sometimes turn of warnings
for a single routine by typing:
    without warning
    <routine definition>
    with warning

Why don't you post the statement that is getting 
the short-circuit warning, so we can see 
how spurious the message is?
Also include the source code (if any) for the
short-circuited routine.

The short-circuit warning is rare, and can sometimes
point to a subtle bug in your logic.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

3. Re: Short Circuit message

Bernie Ryan wrote:

> There are many times when it is desirable to write
> short circuit routines for speed or sometimes they
> are unavoidable.

I find some warnings useful - variables not used, sections of code not
reachable, etc. The short circuiting feature I don't personally find useful,
but then there may be others that do.

Perhaps there should be a "pedantic mode" option? smile

-- David Cuny

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

4. Re: Short Circuit message

I find the warnings useful. But I have to agree about the short circuit
warning.. I don't think I have ever written code where I didn't
intentionally  make the shortcircuit.
The only problem I frequently encounter in that department is using 'or'
instead of 'and' or vice versa.
And I quite often use the short circuit when I need to execute a command
only on success of another (especially in exotica), so that warning does get
particularly annoying.
Also, I think it's the only warning message that will remain in your
program, even if it executes succesfully.

PS. Rob, will 2.3 support relative paths for include staements?
IE.
---file_a.ex
 include libs/lib_a.e

--lib_a.e
include ../lib_main.e

There was something else I was thinking of on this subject, but it escapes
me. It was discussed before. :P
Maybe it'll come to me, or maybe someone else remembers.

Chris

----- Original Message -----
From: "David Cuny" <dcuny at LANSET.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, July 29, 2001 3:17 PM
Subject: Re: Short Circuit message


>
> Bernie Ryan wrote:
>
> > There are many times when it is desirable to write
> > short circuit routines for speed or sometimes they
> > are unavoidable.
>
> I find some warnings useful - variables not used, sections of code not
> reachable, etc. The short circuiting feature I don't personally find
useful,
> but then there may be others that do.
>
> Perhaps there should be a "pedantic mode" option? smile
>
> -- David Cuny
>
>
>
>
>
>

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

5. Re: Short Circuit message

> Robert Craig wrote:
> > 
> > Warnings are meant to flag things that, 
> > while correct, may deserve some attention.
> > 
> 
> There are many times when it is desirable to write short circuit
>   routines for speed or sometimes they are unavoidable.
> 
> I can write CORRECT code that runs with NO ERRORS and when the
> program completes running it pops up your STUPID short-circuit
> message.
> 
> Why is it necessary for the user to have to edit his program to
> prevent this popup window from displaying.
> It would be fine if this was a compiler but its and interpter
> and it should not be displaying that message.
> 
> If the code is correct it should run without warnings or errors
> It's not up to the interpter to second guess some users logic.
>  
> Bernie

The short-circuit warning is useful for functions that have
some side effects. It has been added because older versions
of Eu didn't done short circuit. You can anytime turn it off.

    Martin

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

6. Re: Short Circuit message

On 30 Jul 2001, at 0:39, Chris Bensler wrote:

<snip>

> There was something else I was thinking of on this subject, but it escapes
> me. It was discussed before. :P
> Maybe it'll come to me, or maybe someone else remembers.

You were going to request "goto", remember now? smile

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu