[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56809] Dots in script file names should be al
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed |
Date: |
Thu, 29 Aug 2019 15:00:43 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36 |
Follow-up Comment #2, bug #56809 (project octave):
I'm not sure how this would work with the Octave syntax.
If the Octave parser sees an expression "script.a", that is first parsed as an
identifier "script" followed by a subscript expression referencing a field
named "a". That is before Octave knows whether "script" is a variable,
function, script, class, etc.
I think it would be nice if Octave allowed functions and scripts to use
hyphens, but unfortunately a script named "do-something" is parsed as a binary
minus operation. These seem like the same to me. The names of script files
must be valid identifiers. I'm not sure there's any way around that without
making parsing dependent on context and evaluation, and in turn more complex
and error prone.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56809>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56809] Dots in script file names, Michael Leitner, 2019/08/26
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, Rik, 2019/08/29
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed,
Mike Miller <=
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, Michael Leitner, 2019/08/29
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, Mike Miller, 2019/08/29
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, Michael Leitner, 2019/08/30
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, John W. Eaton, 2019/08/30
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, Michael Leitner, 2019/08/30
- [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed, Mike Miller, 2019/08/30