[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warn when core functions are shadowed
From: |
Jaroslav Hajek |
Subject: |
Re: warn when core functions are shadowed |
Date: |
Tue, 2 Feb 2010 07:30:31 +0100 |
On Mon, Feb 1, 2010 at 4:03 PM, John W. Eaton <address@hidden> wrote:
> On 1-Feb-2010, Jaroslav Hajek wrote:
>
> | Well, the shadowing isn't disabled, you just get a warning. When doing
> | power-user tricks, you probably don't mind ignoring a few warnings.
> | The problem with configuration is that it should probably be done
> | through a command-line switch, because some of these warnings will
> | occur prior to reading your octaverc.
>
> It would probably be good to go ahead and use warning_with_id
> ("Octave:shadow", ...) or similar even if some warnings could occur
> before the user has a chance to set the warning state in their
> .octaverc file. I expect the normal thing would be that there would
> be no warnings because of functions found in ".", so Octave would get
> to the .octaverc file without warnings.
Actually, I think even autoloaded packages go before .octaverc.
> Then the user could have
>
> warning ("off", "Octave:shadow");
> addpath ("/my/directory/which/shadows/functions/from/octave");
>
OK, I did so (Octave:shadow-function) and pushed the changeset.
> If we do want to add a command-line option, then we can make it work for
> all warning flags:
>
> --warning ID set warning state for ID to "on"
> --no-warning ID set warning state for ID to "off"
>
Cool idea.
thanks
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
- warn when core functions are shadowed, Jaroslav Hajek, 2010/02/01
- Re: warn when core functions are shadowed, Dupuis, 2010/02/01
- Re: warn when core functions are shadowed, Robert T. Short, 2010/02/01
- Re: warn when core functions are shadowed, Jaroslav Hajek, 2010/02/01
- Re: warn when core functions are shadowed, Robert T. Short, 2010/02/01
- Re: warn when core functions are shadowed, John W. Eaton, 2010/02/01
- Re: warn when core functions are shadowed,
Jaroslav Hajek <=
- Re: warn when core functions are shadowed, John W. Eaton, 2010/02/02
- Re: warn when core functions are shadowed, Jaroslav Hajek, 2010/02/02
- Re: warn when core functions are shadowed, John W. Eaton, 2010/02/02
warn when core functions are shadowed, John W. Eaton, 2010/02/01