direct mode
   HOME

TheInfoList



OR:

In computing, direct or immediate mode in an interactive programming system is the immediate execution of commands,
statements Statement or statements may refer to: Common uses *Statement (computer science), the smallest standalone element of an imperative programming language *Statement (logic), declarative sentence that is either true or false *Statement, a declarative ...
, or expressions. In many interactive systems, most of these can both be included in programs or executed directly in a
read–eval–print loop A read–eval–print loop (REPL), also termed an interactive toplevel or language shell, is a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user; a program written ...
(REPL). Most interactive systems also offer the possibility of defining programs in the REPL, either with explicit declarations, such as
Python Python may refer to: Snakes * Pythonidae, a family of nonvenomous snakes found in Africa, Asia, and Australia ** ''Python'' (genus), a genus of Pythonidae found in Africa and Asia * Python (mythology), a mythical serpent Computing * Python (pro ...
's def, or by labelling them with line numbers. Programs can then be run by calling a named or numbered procedure or by running a main program. Many programming systems, from Lisp and
JOSS Joss may refer to: * Joss (name), including a list of people with the name * JOSS, a time-sharing programming language * Joss (Chinese statue), a religious object * Joss JP1, an Australian-built supercar * Joss paper, a type of burnt offering * ...
to
Python Python may refer to: Snakes * Pythonidae, a family of nonvenomous snakes found in Africa, Asia, and Australia ** ''Python'' (genus), a genus of Pythonidae found in Africa and Asia * Python (mythology), a mythical serpent Computing * Python (pro ...
and
Perl Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages. "Perl" refers to Perl 5, but from 2000 to 2019 it also referred to its redesigned "sister language", Perl 6, before the latter's name was offic ...
have interactive REPLs which also allow defining programs. Most
integrated development environment An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of at least a source code editor, build automation tools ...
s offer a direct mode where, during debugging and while the program execution is suspended, commands can be executed directly in the current scope and the result is displayed.


Example

;Non-direct mode in Basic ;Direct mode in Basic


References

{{reflist User interfaces Computing terminology