@@ -810,7 +810,7 @@ class NQP::Actions is HLL::Actions {
810
810
# Does the current block have a proto?
811
811
if $ * SCOPE eq ' our' { nqp ::die(' a multi can not be our-scoped' ) }
812
812
my $ proto ;
813
- my % sym := $ * W . cur_lexpad(). symbol($ name );
813
+ my % sym := $ * W . cur_lexpad(). symbol(' & ' ~ $ name );
814
814
if % sym <proto > {
815
815
$ proto := % sym <value >;
816
816
}
@@ -820,7 +820,7 @@ class NQP::Actions is HLL::Actions {
820
820
# Check we have a proto in scope.
821
821
my $ found_proto ;
822
822
for $ * W . get_legacy_block_list() {
823
- my % sym := $ _ . symbol($ name );
823
+ my % sym := $ _ . symbol(' & ' ~ $ name );
824
824
if % sym <proto > {
825
825
$ proto := % sym <value >;
826
826
$ found_proto := 1 ;
@@ -859,27 +859,27 @@ class NQP::Actions is HLL::Actions {
859
859
my $ BLOCK := $ * W . cur_lexpad();
860
860
$ BLOCK [0 ]. push (QAST ::Op. new (
861
861
: op(' bind' ),
862
- QAST ::Var. new ( : name($ name ), : scope(' lexical' ), : decl(' var' ) ),
862
+ QAST ::Var. new ( : name(' & ' ~ $ name ), : scope(' lexical' ), : decl(' var' ) ),
863
863
$ past
864
864
));
865
- $ BLOCK . symbol($ name , : scope(' lexical' ), : proto(1 ), : value($ code ) );
865
+ $ BLOCK . symbol(' & ' ~ $ name , : scope(' lexical' ), : proto(1 ), : value($ code ) );
866
866
}
867
867
else {
868
868
my $ BLOCK := $ * W . cur_lexpad();
869
869
$ BLOCK [0 ]. push (QAST ::Op. new (
870
870
: op(' bind' ),
871
- QAST ::Var. new ( : name($ name ), : scope(' lexical' ), : decl(' var' ) ),
871
+ QAST ::Var. new ( : name(' & ' ~ $ name ), : scope(' lexical' ), : decl(' var' ) ),
872
872
$ past
873
873
));
874
- $ BLOCK . symbol($ name , : scope(' lexical' ));
874
+ $ BLOCK . symbol(' & ' ~ $ name , : scope(' lexical' ));
875
875
if $ * SCOPE eq ' our' {
876
876
# Need to install it at loadinit time but also re-bind
877
877
# it per invocation.
878
878
$ * W . install_package_routine($ * PACKAGE , $ name , $ past );
879
879
$ BLOCK [0 ]. push (QAST ::Op. new (
880
880
: op(' bind' ),
881
881
lexical_package_lookup([$ name ], $/ ),
882
- QAST ::Var. new ( : name($ name ), : scope(' lexical' ) )
882
+ QAST ::Var. new ( : name(' & ' ~ $ name ), : scope(' lexical' ) )
883
883
));
884
884
}
885
885
}
@@ -1206,7 +1206,7 @@ class NQP::Actions is HLL::Actions {
1206
1206
1207
1207
method term :sym <identifier >($/ ) {
1208
1208
my $ past := $ < args > . ast;
1209
- $ past . name (~ $ < deflongname > );
1209
+ $ past . name (' & ' ~ ~ $ < deflongname > );
1210
1210
make $ past ;
1211
1211
}
1212
1212
0 commit comments