[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65085] exit variable should give error
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #65085] exit variable should give error |
Date: |
Wed, 27 Dec 2023 20:30:01 -0500 (EST) |
Update of bug#65085 (group octave):
Category: None => Interpreter
Item Group: None => Missed Error or Warning
Status: None => Wont Fix
Open/Closed: Open => Closed
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #2:
"exit" is a function. Like any other function, you can hide it by declaring a
variable with the same name. As a programmer, you should generally not use
variable names that collide with existing functions.
Octave attempts to be Matlab-compatible so that code can be run under either
interpreter. It is valid in Matlab to declare a variable named "exit" which
overrides the exit function and so Octave must do the same.
Marking as "Won't Fix".
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65085>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/