Re: without warning

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu