Changeset 5853
- Timestamp:
- 07/27/05 21:49:57 (3 years ago)
- svk:copy_cache_prev:
- 7758
- Files:
-
- 3 modified
-
perl5/PIL2JS/lib6/Prelude/JS/Ref.pm (modified) (1 diff)
-
src/Pugs/Compile.hs (modified) (1 diff)
-
t/subroutines/subroutine.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
perl5/PIL2JS/lib6/Prelude/JS/Ref.pm
r5782 r5853 25 25 })')($thing); 26 26 } 27 28 sub circumfix:<${}>($thing) is primitive is rw { PIL2JS::Internals::generic_deref($thing) } 29 sub circumfix:<@{}>($thing) is primitive is rw { PIL2JS::Internals::generic_deref($thing) } 30 sub circumfix:<%{}>($thing) is primitive is rw { PIL2JS::Internals::generic_deref($thing) } 31 sub circumfix:<&{}>($thing) is primitive is rw { PIL2JS::Internals::generic_deref($thing) } -
src/Pugs/Compile.hs
r5721 r5853 357 357 compile (Syn "\\[]" exps) = do 358 358 compile (App (Var "&circumfix:[]") Nothing exps) 359 compile (Syn name@(sigil:"{}") exps) | (sigil ==) `any` "$@%&" = do 360 compile (App (Var $ "&circumfix:" ++ name) Nothing exps) 359 361 compile (Syn "\\{}" exps) = do 360 362 compile (App (Var "&circumfix:{}") Nothing exps) -
t/subroutines/subroutine.t
r5770 r5853 31 31 ok(twice(5) == 10); 32 32 #if (&twice(5 - 3) == 4) { say "ok 4" } else { say "not ok 4" } 33 ok( eval 'twice(5 - 3) == 4');33 ok(twice(5 - 3) == 4); 34 34 35 35 my $_;
