Changeset 14504

Show
Ignore:
Timestamp:
10/24/06 17:24:59 (2 years ago)
Author:
fglock
svk:copy_cache_prev:
21659
Message:

v6/emitter(2) - added more questions in HACKING

Location:
misc/pX/Common/Pugs-Emitter-Perl6-Perl5-2
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • misc/pX/Common/Pugs-Emitter-Perl6-Perl5-2/HACKING

    r14503 r14504  
    194194<TimToady> this is one of the suprising results of forcing statement-begining { to start a bare block. 
    195195 
    196 <fglock> is the type of "0 but True" something like ::(Int|Bool) ? 
    197  
    198 <fglock> can multis dispatch on a constant? multi a(1){ "first" }; multi a(2){ "second" }; multi a { "other" }; 
    199  
    200196-- Questions 
    201197 
     
    206202    my Str $b; 
    207203    $a := $b;  # error ??? 
     204 
     205    (1,2,3)[1]     # ok - splice a List 
     206    (1,2,3)[1]=5   # error - List is read-only; doesn't coerce List into Array 
     207    [1,2,3][1]=5   # ok - Array is read-write 
     208 
     209    - is the type of "0 but True" something like ::(Int|Bool) ? 
     210 
     211    - can multis dispatch on a constant? multi a(1){ "first" }; multi a(2){ "second" }; multi a { "other" }; 
     212 
  • misc/pX/Common/Pugs-Emitter-Perl6-Perl5-2/lib/Pugs/Emitter/Perl6/Perl5/Scalar.pm

    r14501 r14504  
    166166        Pugs::Runtime::Common::mangle_var( $_[0]->{name} ) 
    167167    } 
     168    sub VAR { 
     169        Pugs::Runtime::Common::mangle_var( $_[0]->{name} ) 
     170    } 
    168171 
    1691721;