Changeset 6308
- Timestamp:
- 08/17/05 20:20:36 (3 years ago)
- svk:copy_cache_prev:
- 8581
- Files:
-
- 4 modified
-
lib/pugs/hack.pod (modified) (1 diff)
-
perl5/PIL2JS/lib/PIL.pm (modified) (3 diffs)
-
perl5/PIL2JS/lib/PIL/Subs.pm (modified) (2 diffs)
-
perl5/PIL2JS/libjs/PIL2JS.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lib/pugs/hack.pod
r6299 r6308 294 294 295 295 L<http://rt.openfoundry.org/Foundry/Project/Source/index.html/pugs/browse/> 296 Browsable pugs vcs. You sometimes get a blank page the first time you297 access a url(a timeout) - just click again.298 299 =item * 300 301 L<http://svn.perl.org/perl6/pugs/trunk/> Mirror of pugs vcs head.296 Browsable Pugs vcs. You sometimes get a blank page the first time you 297 access a URL (a timeout) - just click again. 298 299 =item * 300 301 L<http://svn.perl.org/perl6/pugs/trunk/> Mirror of Pugs vcs head. 302 302 Usually faster and more reliable than the openfoundry browser. 303 303 -
perl5/PIL2JS/lib/PIL.pm
r6302 r6308 107 107 var __returncc = args.pop(); 108 108 var %s = function (retval) { 109 PIL2JS .call_chain.pop(); PIL2JS.subpads.pop();109 PIL2JS_callchain.pop(); PIL2JS_subpads.pop(); 110 110 %s; 111 111 throw function () { __returncc(retval) }; … … 185 185 PIL2JS.catch_all_exceptions(function () { 186 186 PIL2JS.runloop(function () { 187 var pad = {}; PIL2JS .subpads.push(pad);187 var pad = {}; PIL2JS_subpads.push(pad); 188 188 pad['\$?POSITION'] = _24main_3a_3a_3fPOSITION; 189 189 pad['\$_'] = _24main_3a_3a_; … … 191 191 }); 192 192 }); 193 PIL2JS .subpads.pop();193 PIL2JS_subpads.pop(); 194 194 EOF 195 195 } -
perl5/PIL2JS/lib/PIL/Subs.pm
r6302 r6308 61 61 $magical_vars =~ s/%NAME/PIL::doublequote $PIL::CUR_SUBNAME/eg; 62 62 63 my $callchain = "PIL2JS .call_chain.push(" . PIL::name_mangle($self->{pSubName}) . ")";64 my $new_pad = "var pad = {}; PIL2JS .subpads.push(pad)";63 my $callchain = "PIL2JS_callchain.push(" . PIL::name_mangle($self->{pSubName}) . ")"; 64 my $new_pad = "var pad = {}; PIL2JS_subpads.push(pad)"; 65 65 my $params = $self->{pSubParams}->as_js; 66 66 … … 155 155 local $PIL::CUR_SUBNAME = "<anonymous@{[$PIL::CUR_SUBNAME ? ' in ' . $PIL::CUR_SUBNAME : '']}>"; 156 156 157 my $new_pad = "var pad = {}; PIL2JS .subpads.push(pad)";157 my $new_pad = "var pad = {}; PIL2JS_subpads.push(pad)"; 158 158 my $params = $self->{pParams}->as_js; 159 159 my $magical_vars = $PIL::IN_SUBLIKE >= PIL::SUBROUTINE -
perl5/PIL2JS/libjs/PIL2JS.js
r6208 r6308 683 683 684 684 // Array of boxed subs we're currently in. 685 PIL2JS.call_chain = [];685 var PIL2JS_callchain = []; 686 686 // Array of pads we're currently in, used for $CALLER::. 687 687 // Note that the pads change at runtime, i.e.: 688 688 // # No my $a yet 689 // # PIL2JS .subpads[-1]["$a"] undefined689 // # PIL2JS_subpads[-1]["$a"] undefined 690 690 // my $a; 691 // # PIL2JS .subpads[-1]["$a"] is defined now.692 PIL2JS.subpads= [];691 // # PIL2JS_subpads[-1]["$a"] is defined now. 692 var PIL2JS_subpads = []; 693 693 PIL2JS.resolve_callervar = function (delta, name) { 694 694 // delta == 0: current pad … … 697 697 // etc. 698 698 699 if(PIL2JS .subpads.length >= delta + 1) {700 var pad = PIL2JS .subpads[PIL2JS.subpads.length - delta - 1];699 if(PIL2JS_subpads.length >= delta + 1) { 700 var pad = PIL2JS_subpads[PIL2JS_subpads.length - delta - 1]; 701 701 if(pad[name]) { 702 702 return pad[name];
