Skip to content

Commit

Permalink
Change is-interactive to multi-line-enabled
Browse files Browse the repository at this point in the history
For an upcoming change, multi-line input may not always be
active when input is interactive, so I didn't want them to be
viewed as synonymous
  • Loading branch information
hoelzro committed Feb 13, 2016
1 parent e9d14b3 commit fcdfe89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Perl6/Compiler.nqp
Expand Up @@ -44,7 +44,7 @@ class Perl6::Compiler is HLL::Compiler {
has $!readline;
has $!readline_add_history;
has $!completions;
has $!is-interactive;
has $!multi-line-enabled;

method compilation-id() {
my class IDHolder { }
Expand Down Expand Up @@ -179,7 +179,7 @@ class Perl6::Compiler is HLL::Compiler {
}

method interactive(*%adverbs) {
$!is-interactive := 1;
$!multi-line-enabled := 1;
my $readline_loaded := 0;
my $problem;

Expand Down Expand Up @@ -327,7 +327,7 @@ class Perl6::Compiler is HLL::Compiler {

method eval($code, *@args, *%adverbs) {
my $super := nqp::findmethod(HLL::Compiler, 'eval');
unless $!is-interactive {
unless $!multi-line-enabled {
return $super(self, $code, |@args, |%adverbs);
}

Expand Down

0 comments on commit fcdfe89

Please sign in to comment.